From 958318e76270b176a5710e34cdc93fbf43e72852 Mon Sep 17 00:00:00 2001
From: Sergey Yakubov <sergey.yakubov@desy.de>
Date: Thu, 1 Oct 2020 07:52:30 +0200
Subject: [PATCH] fix timeout on windows

---
 .../authorizer/check_authorize/check_windows.bat     |  2 +-
 tests/automatic/broker/get_last/check_windows.bat    |  2 +-
 tests/automatic/broker/get_meta/check_windows.bat    |  2 +-
 tests/automatic/broker/get_next/check_windows.bat    |  2 +-
 tests/automatic/broker/read_config/check_windows.bat |  2 +-
 .../check_windows.bat                                |  2 +-
 .../producer_send_after_restart/check_windows.bat    | 12 ++++++------
 tests/automatic/common_scripts/start_services.bat    |  4 ++--
 .../consumer/folder_to_db/check_windows.bat          |  2 +-
 .../curl_http_client_command/check_windows.bat       |  2 +-
 .../file_transfer_service/rest_api/check_windows.bat |  2 +-
 .../full_chain/simple_chain/check_windows.bat        |  2 +-
 .../simple_chain_dataset/check_windows.bat           |  2 +-
 .../simple_chain_filegen/check_windows.bat           |  4 ++--
 .../simple_chain_filegen_batches/check_windows.bat   |  4 ++--
 .../check_windows.bat                                |  4 ++--
 .../check_windows.bat                                |  4 ++--
 .../check_windows.bat                                |  4 ++--
 .../full_chain/simple_chain_raw/check_windows.bat    |  2 +-
 .../full_chain/two_beamlines/check_windows.bat       |  2 +-
 .../full_chain/two_streams/check_windows.bat         |  2 +-
 tests/automatic/producer/aai/check_windows.bat       |  2 +-
 .../producer/file_monitor_producer/check_windows.bat |  6 +++---
 .../automatic/producer/python_api/check_windows.bat  |  2 +-
 .../transfer_datasets/check_windows.bat              |  2 +-
 .../transfer_single_file/check_windows.bat           |  2 +-
 .../check_windows.bat                                |  2 +-
 tests/automatic/spd_logger/fluentd/check_windows.bat |  2 +-
 .../system_io/read_folder_content/setup_windows.bat  |  6 +++---
 .../system_io/read_subdirectories/setup_windows.bat  |  2 +-
 30 files changed, 45 insertions(+), 45 deletions(-)

diff --git a/tests/automatic/authorizer/check_authorize/check_windows.bat b/tests/automatic/authorizer/check_authorize/check_windows.bat
index ffa160888..23f3da008 100644
--- a/tests/automatic/authorizer/check_authorize/check_windows.bat
+++ b/tests/automatic/authorizer/check_authorize/check_windows.bat
@@ -3,7 +3,7 @@ set short_name="%~nx1"
 
 start /B "" "%full_name%" -config settings.json
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir asap3\petra3\gpfs\p00\2019\comissioning\c20180508-000-COM20181
 mkdir beamline\p07\current
diff --git a/tests/automatic/broker/get_last/check_windows.bat b/tests/automatic/broker/get_last/check_windows.bat
index 398040e68..2b7895dd0 100644
--- a/tests/automatic/broker/get_last/check_windows.bat
+++ b/tests/automatic/broker/get_last/check_windows.bat
@@ -11,7 +11,7 @@ set short_name="%~nx1"
 set /P token=< token
 
 start /B "" "%full_name%" -config settings.json
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 C:\Curl\curl.exe -d '' --silent 127.0.0.1:5005/creategroup > groupid
 set /P groupid=< groupid
diff --git a/tests/automatic/broker/get_meta/check_windows.bat b/tests/automatic/broker/get_meta/check_windows.bat
index b6b9e1d4d..63eeaec9c 100644
--- a/tests/automatic/broker/get_meta/check_windows.bat
+++ b/tests/automatic/broker/get_meta/check_windows.bat
@@ -11,7 +11,7 @@ set /P token=< token
 
 start /B "" "%full_name%" -config settings.json
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 C:\Curl\curl.exe -v  --silent 127.0.0.1:5005/database/data/stream/default/0/meta/0?token=%token% --stderr - | findstr /c:\"_id\":0  || goto :error
 C:\Curl\curl.exe -v  --silent 127.0.0.1:5005/database/data/stream/default/0/meta/1?token=%token% --stderr - | findstr /c:"no documents"  || goto :error
diff --git a/tests/automatic/broker/get_next/check_windows.bat b/tests/automatic/broker/get_next/check_windows.bat
index 324cc61e9..e662d5aef 100644
--- a/tests/automatic/broker/get_next/check_windows.bat
+++ b/tests/automatic/broker/get_next/check_windows.bat
@@ -12,7 +12,7 @@ set /P token=< token
 
 start /B "" "%full_name%" -config settings.json
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 C:\Curl\curl.exe -d '' --silent 127.0.0.1:5005/creategroup > groupid
 set /P groupid=< groupid
diff --git a/tests/automatic/broker/read_config/check_windows.bat b/tests/automatic/broker/read_config/check_windows.bat
index 7a02dd8b6..ed4dfc5f8 100644
--- a/tests/automatic/broker/read_config/check_windows.bat
+++ b/tests/automatic/broker/read_config/check_windows.bat
@@ -3,7 +3,7 @@ set short_name="%~nx1"
 
 start /B "" "%full_name%" -config settings_good.json
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 Taskkill /IM "%short_name%" /F
 
 %full_name% -config settings_bad.json 2>&1 | findstr /c:"not set"  || goto :error
diff --git a/tests/automatic/bug_fixes/error-sending-data-using-callback-method/check_windows.bat b/tests/automatic/bug_fixes/error-sending-data-using-callback-method/check_windows.bat
index acaf9b1a6..b70d7749f 100644
--- a/tests/automatic/bug_fixes/error-sending-data-using-callback-method/check_windows.bat
+++ b/tests/automatic/bug_fixes/error-sending-data-using-callback-method/check_windows.bat
@@ -14,7 +14,7 @@ mkdir %receiver_folder%
 
 echo test > file1
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 set PYTHONPATH=%2
 
diff --git a/tests/automatic/bug_fixes/producer_send_after_restart/check_windows.bat b/tests/automatic/bug_fixes/producer_send_after_restart/check_windows.bat
index 38dfd3b2d..69583a8d7 100644
--- a/tests/automatic/bug_fixes/producer_send_after_restart/check_windows.bat
+++ b/tests/automatic/bug_fixes/producer_send_after_restart/check_windows.bat
@@ -23,24 +23,24 @@ mkdir %receiver_folder%
 mkdir  c:\tmp\asapo\test_in\processed
 start /B "" "%1" test.json
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 echo hello > c:\tmp\asapo\test_in\processed\file1
 echo hello > c:\tmp\asapo\test_in\processed\file2
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 c:\opt\consul\nomad stop receiver
 c:\opt\consul\nomad run receiver_tcp.nmd
 
-ping 1.0.0.0 -n 3 -w 100 > nul
-ping 1.0.0.0 -n 3 -w 100 > nul
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 echo hello > c:\tmp\asapo\test_in\processed\file3
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/common_scripts/start_services.bat b/tests/automatic/common_scripts/start_services.bat
index 680ed1a56..e27bc8ccf 100644
--- a/tests/automatic/common_scripts/start_services.bat
+++ b/tests/automatic/common_scripts/start_services.bat
@@ -6,7 +6,7 @@ c:\opt\consul\nomad run nginx.nmd
 c:\opt\consul\nomad run file_transfer.nmd
 
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 3000 > nul
 
 set i=0
 :repeat
@@ -15,7 +15,7 @@ echo %i%
 if %i% EQU 20 (
     goto :error
 )
-ping 1.0.0.0 -n 3 -w 100  1>nul
+ping 192.0.2.1 -n 1 -w 1000 >nul
 curl --silent --fail 127.0.0.1:8400/asapo-discovery/asapo-receiver --stderr - | findstr 127.0.0.1  || goto :repeat
 curl --silent --fail 127.0.0.1:8400/asapo-discovery/asapo-broker --stderr - | findstr 127.0.0.1 || goto :repeat
 curl --silent --fail 127.0.0.1:8400/asapo-discovery/asapo-file-transfer --stderr -  | findstr 127.0.0.1 || goto :repeat
diff --git a/tests/automatic/consumer/folder_to_db/check_windows.bat b/tests/automatic/consumer/folder_to_db/check_windows.bat
index f24ad478f..a0772c6ff 100644
--- a/tests/automatic/consumer/folder_to_db/check_windows.bat
+++ b/tests/automatic/consumer/folder_to_db/check_windows.bat
@@ -3,7 +3,7 @@ SET mongo_exe="c:\Program Files\MongoDB\Server\4.2\bin\mongo.exe"
 
 mkdir test
 echo "" > test/file2
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 echo "" > test/file1
 
 %* test test_run 127.0.0.1 || goto :error
diff --git a/tests/automatic/curl_http_client/curl_http_client_command/check_windows.bat b/tests/automatic/curl_http_client/curl_http_client_command/check_windows.bat
index 7aab2755c..a9382c3c9 100644
--- a/tests/automatic/curl_http_client/curl_http_client_command/check_windows.bat
+++ b/tests/automatic/curl_http_client/curl_http_client_command/check_windows.bat
@@ -8,7 +8,7 @@ set file_transfer_folder=%file_transfer_folder:\=\\%
 c:\opt\consul\nomad run authorizer.nmd
 c:\opt\consul\nomad run file_transfer.nmd
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir %file_transfer_folder%
 echo | set /p dummyName="hello" > %file_transfer_folder%\aaa
diff --git a/tests/automatic/file_transfer_service/rest_api/check_windows.bat b/tests/automatic/file_transfer_service/rest_api/check_windows.bat
index a193eaefc..9814125d2 100644
--- a/tests/automatic/file_transfer_service/rest_api/check_windows.bat
+++ b/tests/automatic/file_transfer_service/rest_api/check_windows.bat
@@ -7,7 +7,7 @@ set file_transfer_folder=%file_transfer_folder:\=\\%
 c:\opt\consul\nomad run authorizer.nmd
 c:\opt\consul\nomad run file_transfer.nmd
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 set token=bnCXpOdBV90wU1zybEw1duQNSORuwaKz6oDHqmL35p0=
 
diff --git a/tests/automatic/full_chain/simple_chain/check_windows.bat b/tests/automatic/full_chain/simple_chain/check_windows.bat
index 7b2024362..8ef712f14 100644
--- a/tests/automatic/full_chain/simple_chain/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain/check_windows.bat
@@ -18,7 +18,7 @@ call start_services.bat
 REM producer
 mkdir %receiver_folder%
 start /B "" "%1" %proxy_address% %beamtime_id% 100 1000 4 0 100
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 REM consumer
 "%2" %proxy_address% %receiver_folder% %beamtime_id% 2 %token% 5000 1 > out.txt
diff --git a/tests/automatic/full_chain/simple_chain_dataset/check_windows.bat b/tests/automatic/full_chain/simple_chain_dataset/check_windows.bat
index e1273b939..030c045eb 100644
--- a/tests/automatic/full_chain/simple_chain_dataset/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_dataset/check_windows.bat
@@ -17,7 +17,7 @@ call start_services.bat
 REM producer
 mkdir %receiver_folder%
 start /B "" "%1" %proxy_address% %beamtime_id% 100 100 4 0 100 5
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 REM consumer
 "%2" %proxy_address% %receiver_folder% %beamtime_id% 2 %token% 5000 1 1 > out.txt
diff --git a/tests/automatic/full_chain/simple_chain_filegen/check_windows.bat b/tests/automatic/full_chain/simple_chain_filegen/check_windows.bat
index c4dd96c9c..1eeb2fe43 100644
--- a/tests/automatic/full_chain/simple_chain_filegen/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_filegen/check_windows.bat
@@ -23,7 +23,7 @@ mkdir %receiver_folder%
 mkdir  c:\tmp\asapo\test_in\processed
 start /B "" "%1" test.json
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir  c:\tmp\asapo\test_in\processed\test1
 mkdir  c:\tmp\asapo\test_in\processed\test2
@@ -33,7 +33,7 @@ echo hello > c:\tmp\asapo\test_in\processed\test1\file1
 echo hello > c:\tmp\asapo\test_in\processed\test1\file2
 echo hello > c:\tmp\asapo\test_in\processed\test2\file2
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/full_chain/simple_chain_filegen_batches/check_windows.bat b/tests/automatic/full_chain/simple_chain_filegen_batches/check_windows.bat
index 4ed07ca89..a8842020e 100644
--- a/tests/automatic/full_chain/simple_chain_filegen_batches/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_filegen_batches/check_windows.bat
@@ -23,7 +23,7 @@ mkdir %receiver_folder%
 mkdir  c:\tmp\asapo\test_in\processed
 start /B "" "%1" test.json
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 mkdir  c:\tmp\asapo\test_in\processed\test1
 mkdir  c:\tmp\asapo\test_in\processed\test2
 
@@ -31,7 +31,7 @@ echo hello > c:\tmp\asapo\test_in\processed\test1\file1
 echo hello > c:\tmp\asapo\test_in\processed\test1\file2
 echo hello > c:\tmp\asapo\test_in\processed\test2\file2
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/full_chain/simple_chain_filegen_multisource/check_windows.bat b/tests/automatic/full_chain/simple_chain_filegen_multisource/check_windows.bat
index 647ebecde..8ae26ac14 100644
--- a/tests/automatic/full_chain/simple_chain_filegen_multisource/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_filegen_multisource/check_windows.bat
@@ -29,7 +29,7 @@ REM producer2
 start /B "" "%1" test2.json
 
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 mkdir  c:\tmp\asapo\test_in1\processed\test1
 mkdir  c:\tmp\asapo\test_in2\processed\test2
 
@@ -38,7 +38,7 @@ echo hello > c:\tmp\asapo\test_in1\processed\test1\file2
 echo hello > c:\tmp\asapo\test_in2\processed\test2\file1
 echo hello > c:\tmp\asapo\test_in2\processed\test2\file2
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/full_chain/simple_chain_filegen_readdata_cache/check_windows.bat b/tests/automatic/full_chain/simple_chain_filegen_readdata_cache/check_windows.bat
index 594e17b72..32754618f 100644
--- a/tests/automatic/full_chain/simple_chain_filegen_readdata_cache/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_filegen_readdata_cache/check_windows.bat
@@ -23,7 +23,7 @@ mkdir %receiver_folder%
 mkdir  c:\tmp\asapo\test_in\processed
 start /B "" "%1" test.json
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir  c:\tmp\asapo\test_in\processed\test1
 mkdir  c:\tmp\asapo\test_in\processed\test2
@@ -31,7 +31,7 @@ echo hello1 > c:\tmp\asapo\test_in\processed\test1\file1
 echo hello2 > c:\tmp\asapo\test_in\processed\test1\file2
 echo hello3 > c:\tmp\asapo\test_in\processed\test2\file2
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/full_chain/simple_chain_filegen_readdata_file/check_windows.bat b/tests/automatic/full_chain/simple_chain_filegen_readdata_file/check_windows.bat
index 0c00c5257..e68b0ca63 100644
--- a/tests/automatic/full_chain/simple_chain_filegen_readdata_file/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_filegen_readdata_file/check_windows.bat
@@ -23,7 +23,7 @@ mkdir %receiver_folder%
 mkdir  c:\tmp\asapo\test_in\processed
 start /B "" "%1" test.json
 
-ping 1.0.0.0 -n 3 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir  c:\tmp\asapo\test_in\processed\test1
 mkdir  c:\tmp\asapo\test_in\processed\test2
@@ -32,7 +32,7 @@ echo hello2 > c:\tmp\asapo\test_in\processed\test1\file2
 echo hello3 > c:\tmp\asapo\test_in\processed\test2\file2
 
 
-ping 1.0.0.0 -n 10 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 REM consumer
diff --git a/tests/automatic/full_chain/simple_chain_raw/check_windows.bat b/tests/automatic/full_chain/simple_chain_raw/check_windows.bat
index aaa10a220..8f9eea4aa 100644
--- a/tests/automatic/full_chain/simple_chain_raw/check_windows.bat
+++ b/tests/automatic/full_chain/simple_chain_raw/check_windows.bat
@@ -17,7 +17,7 @@ call start_services.bat
 REM producer
 mkdir %receiver_folder%
 start /B "" "%1" %proxy_address% %beamtime_id% 100 10 4 100 100
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 REM consumer
 "%2" %proxy_address% "_" %beamtime_id% 2 %token% 5000  1 > out.txt
diff --git a/tests/automatic/full_chain/two_beamlines/check_windows.bat b/tests/automatic/full_chain/two_beamlines/check_windows.bat
index b0c525914..1a906b99e 100644
--- a/tests/automatic/full_chain/two_beamlines/check_windows.bat
+++ b/tests/automatic/full_chain/two_beamlines/check_windows.bat
@@ -30,7 +30,7 @@ mkdir %receiver_folder1%
 mkdir %receiver_folder2%
 start /B "" "%1" %proxy_address% %beamtime_id1% 100 1000 4 0 100
 start /B "" "%1" %proxy_address% %beamtime_id2% 100 900 4 0 100
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 REM consumer
 "%2" %proxy_address% %receiver_folder1% %beamtime_id1% 2 %token1% 12000  0 > out1.txt
diff --git a/tests/automatic/full_chain/two_streams/check_windows.bat b/tests/automatic/full_chain/two_streams/check_windows.bat
index 43ef2ab6c..c2ba213cb 100644
--- a/tests/automatic/full_chain/two_streams/check_windows.bat
+++ b/tests/automatic/full_chain/two_streams/check_windows.bat
@@ -21,7 +21,7 @@ REM producer
 mkdir %receiver_folder%
 start /B "" "%1" %proxy_address% %beamtime_id%%%%stream1% 100 1000 4 0 100
 start /B "" "%1" %proxy_address% %beamtime_id%%%%stream2% 100 900 4 0 100
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 REM consumer
 "%2" %proxy_address% %receiver_folder% %beamtime_id%%%%stream1% 2 %token% 12000  0 > out1.txt
diff --git a/tests/automatic/producer/aai/check_windows.bat b/tests/automatic/producer/aai/check_windows.bat
index 6a38017b8..586959dae 100644
--- a/tests/automatic/producer/aai/check_windows.bat
+++ b/tests/automatic/producer/aai/check_windows.bat
@@ -19,7 +19,7 @@ mkdir %receiver_folder2%
 
 echo test > file1
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 set PYTHONPATH=%2
 
diff --git a/tests/automatic/producer/file_monitor_producer/check_windows.bat b/tests/automatic/producer/file_monitor_producer/check_windows.bat
index db53ef2d3..4673ce1ba 100644
--- a/tests/automatic/producer/file_monitor_producer/check_windows.bat
+++ b/tests/automatic/producer/file_monitor_producer/check_windows.bat
@@ -2,14 +2,14 @@ SET root_folder=c:\tmp\asapo
 set short_name="%~nx1"
 
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir %root_folder%\test_in\test1
 mkdir %root_folder%\test_in\test2
 mkdir %root_folder%\test_out
 
 start /B "" "%1" test.json > output
-ping 1.0.0.0 -n 2 -w 100 > nul
+ping 192.0.2.1 -n 2 -w 1000 > nul
 
 echo test1 > %root_folder%\test_in\test1\test1.dat
 echo test2 > %root_folder%\test_in\test2\test1.tmp
@@ -17,7 +17,7 @@ echo test2 > %root_folder%\test_in\test2\test1.tmp
 mkdir  %root_folder%\test_in\test2\subdir
 echo test3 > %root_folder%\test_in\test2\subdir\test3.dat
 
-ping 1.0.0.0 -n 2 -w 100 > nul
+ping 192.0.2.1 -n 2 -w 1000 > nul
 
 type %root_folder%\test_out\test1\test1.dat | findstr /c:"test1"  || goto :error
 type %root_folder%\test_out\test2\subdir\test3.dat | findstr /c:"test3"  || goto :error
diff --git a/tests/automatic/producer/python_api/check_windows.bat b/tests/automatic/producer/python_api/check_windows.bat
index 2cf597afe..631d4d443 100644
--- a/tests/automatic/producer/python_api/check_windows.bat
+++ b/tests/automatic/producer/python_api/check_windows.bat
@@ -14,7 +14,7 @@ mkdir %receiver_folder%
 
 echo test > file1
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 set PYTHONPATH=%2
 
diff --git a/tests/automatic/producer_receiver/transfer_datasets/check_windows.bat b/tests/automatic/producer_receiver/transfer_datasets/check_windows.bat
index 7ae8f9792..5047a8cda 100644
--- a/tests/automatic/producer_receiver/transfer_datasets/check_windows.bat
+++ b/tests/automatic/producer_receiver/transfer_datasets/check_windows.bat
@@ -13,7 +13,7 @@ mkdir %receiver_folder%
 
 "%1" localhost:8400 %beamtime_id% 100 1 1 0 30 3
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 FOR /F "usebackq" %%A IN ('%receiver_folder%\processed\1_1') DO set size=%%~zA
 if %size% NEQ 100000 goto :error
diff --git a/tests/automatic/producer_receiver/transfer_single_file/check_windows.bat b/tests/automatic/producer_receiver/transfer_single_file/check_windows.bat
index 96226b7b3..e9e6e7586 100644
--- a/tests/automatic/producer_receiver/transfer_single_file/check_windows.bat
+++ b/tests/automatic/producer_receiver/transfer_single_file/check_windows.bat
@@ -13,7 +13,7 @@ mkdir %receiver_folder%
 
 "%1" localhost:8400 %beamtime_id% 100 1 1 0 30
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 FOR /F "usebackq" %%A IN ('%receiver_folder%\processed\1') DO set size=%%~zA
 if %size% NEQ 100000 goto :error
diff --git a/tests/automatic/producer_receiver/transfer_single_file_bypass_buffer/check_windows.bat b/tests/automatic/producer_receiver/transfer_single_file_bypass_buffer/check_windows.bat
index 309236645..c1d0c0e22 100644
--- a/tests/automatic/producer_receiver/transfer_single_file_bypass_buffer/check_windows.bat
+++ b/tests/automatic/producer_receiver/transfer_single_file_bypass_buffer/check_windows.bat
@@ -13,7 +13,7 @@ mkdir %receiver_folder%
 
 "%1" localhost:8400 %beamtime_id% 60000 1 1 0 30
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 FOR /F "usebackq" %%A IN ('%receiver_folder%\processed\1') DO set size=%%~zA
 if %size% NEQ 60000000 goto :error
diff --git a/tests/automatic/spd_logger/fluentd/check_windows.bat b/tests/automatic/spd_logger/fluentd/check_windows.bat
index 3053cca71..6afaaf41b 100644
--- a/tests/automatic/spd_logger/fluentd/check_windows.bat
+++ b/tests/automatic/spd_logger/fluentd/check_windows.bat
@@ -3,7 +3,7 @@ del %folder%\asapo.*.log
 
 "%1"
 
-ping 1.0.0.0 -n 5 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 
 findstr /I /L /C:"\"json_test\":\"info\"" %folder%\asapo.*.log || goto :error
diff --git a/tests/automatic/system_io/read_folder_content/setup_windows.bat b/tests/automatic/system_io/read_folder_content/setup_windows.bat
index 500f16745..e8c3223f4 100644
--- a/tests/automatic/system_io/read_folder_content/setup_windows.bat
+++ b/tests/automatic/system_io/read_folder_content/setup_windows.bat
@@ -3,11 +3,11 @@ mkdir test\subtest
 mkdir test\subtest\subtest2
 
 type nul > test\2
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 type nul > test\3
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 type nul > test\subtest\subtest2\4
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 echo | set /p dummyName="1234" > test\1
 
 mkdir test_noaccess1
diff --git a/tests/automatic/system_io/read_subdirectories/setup_windows.bat b/tests/automatic/system_io/read_subdirectories/setup_windows.bat
index cb13eab96..509eb0a46 100644
--- a/tests/automatic/system_io/read_subdirectories/setup_windows.bat
+++ b/tests/automatic/system_io/read_subdirectories/setup_windows.bat
@@ -5,7 +5,7 @@ mkdir test\subtest1\subtest2
 mkdir test\subtest3
 mkdir test\subtest3\subtest4
 
-ping 1.0.0.0 -n 1 -w 100 > nul
+ping 192.0.2.1 -n 1 -w 1000 > nul
 
 mkdir test_noaccess1
 icacls test_noaccess1 /deny *S-1-1-0:(GA)
-- 
GitLab