diff --git a/tests/automatic/producer/python_api/check_windows.bat b/tests/automatic/producer/python_api/check_windows.bat
index 6d8d3ddb2ee2a7ff6d528c3eadec61e418dd66cf..b7baf522b94b0fcf87c664dd7cbba2e637627692 100644
--- a/tests/automatic/producer/python_api/check_windows.bat
+++ b/tests/automatic/producer/python_api/check_windows.bat
@@ -29,12 +29,12 @@ set NUM=0
 for /F %%N in ('find /C "successfuly sent" ^< "out"') do set NUM=%%N
 echo %NUM% | findstr 10 || goto error
 
-for /F %%N in ('find /C "already have record with same id" ^< "out"') do set NUM=%%N
-echo %NUM% | findstr 4 || goto error
+for /F %%N in ('find /C "} wrong input: Bad request :already have record with same id" ^< "out"') do set NUM=%%N
+echo %NUM% | findstr 2 || goto error
 
 
-for /F %%N in ('find /C "duplicate" ^< "out"') do set NUM=%%N
-echo %NUM% | findstr 4 || goto error
+for /F %%N in ('find /C "} server warning: ignoring duplicate record" ^< "out"') do set NUM=%%N
+echo %NUM% | findstr 2 || goto error
 
 goto :clean