From 4ca77c1a4721f723aa17fb1920fb4e480f7f2e45 Mon Sep 17 00:00:00 2001 From: Sergey Yakubov <sergey.yakubov@desy.de> Date: Wed, 5 Feb 2020 17:22:19 +0100 Subject: [PATCH] fix tests --- tests/automatic/consumer/consumer_api/check_linux.sh | 2 +- tests/automatic/consumer/consumer_api/check_windows.bat | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/automatic/consumer/consumer_api/check_linux.sh b/tests/automatic/consumer/consumer_api/check_linux.sh index f2085872f..be6442d3a 100644 --- a/tests/automatic/consumer/consumer_api/check_linux.sh +++ b/tests/automatic/consumer/consumer_api/check_linux.sh @@ -15,7 +15,7 @@ Cleanup() { nomad run nginx_kill.nmd && nomad stop -yes -purge nginx_kill nomad stop discovery nomad stop broker -# echo "db.dropDatabase()" | mongo ${database_name} + echo "db.dropDatabase()" | mongo ${database_name} rm -f 1_1 1 } diff --git a/tests/automatic/consumer/consumer_api/check_windows.bat b/tests/automatic/consumer/consumer_api/check_windows.bat index e5116fa46..a11f05a2b 100644 --- a/tests/automatic/consumer/consumer_api/check_windows.bat +++ b/tests/automatic/consumer/consumer_api/check_windows.bat @@ -16,6 +16,9 @@ ping 1.0.0.0 -n 10 -w 100 > nul for /l %%x in (1, 1, 10) do echo db.data_default.insert({"_id":%%x,"size":6,"name":"%%x","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}) | %mongo_exe% %database_name% || goto :error +for /l %%x in (1, 1, 5) do echo db.data_stream1.insert({"_id":%%x,"size":6,"name":"1%%x","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}) | %mongo_exe% %database_name% || goto :error + +for /l %%x in (1, 1, 5) do echo db.data_stream2.insert({"_id":%%x,"size":6,"name":"2%%x","lastchange":1,"source":"none","buf_id":0,"meta":{"test":10}}) | %mongo_exe% %database_name% || goto :error echo hello1 > 1 -- GitLab