From bc40ea7bab34110c8cd9c33281f6b9cb6a97598f Mon Sep 17 00:00:00 2001 From: Lev Brouk Date: Fri, 1 Nov 2024 10:04:18 -0700 Subject: [PATCH] Adjusted test parameters, REPEAT micro on travis --- buildOnTravis.sh | 3 ++- test/test.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buildOnTravis.sh b/buildOnTravis.sh index 8bc7da678..afa339a2e 100755 --- a/buildOnTravis.sh +++ b/buildOnTravis.sh @@ -75,7 +75,8 @@ fi export NATS_TEST_TRAVIS=yes echo "Using NATS server version: $NATS_TEST_SERVER_VERSION" -ctest -L 'test' --timeout 60 --output-on-failure $4 +ctest -R 'Micro' --timeout 60 --output-on-failure $4 --repeat-until-fail 20 +# ctest -L 'test' --timeout 60 --output-on-failure $4 res=$? if [ $res -ne 0 ]; then exit $res diff --git a/test/test.c b/test/test.c index 8abee5065..ac6843746 100644 --- a/test/test.c +++ b/test/test.c @@ -33584,7 +33584,7 @@ _startManyMicroservices(microService** svcs, int n, natsConnection *nc, microSer #define _waitForMicroservicesAllDone(_arg) \ { \ - nats_Sleep(20); \ + nats_Sleep(50); \ natsMutex_Lock((_arg)->m); \ testf("Wait for %d microservices to stop: ", (_arg)->microRunningServiceCount); \ natsStatus waitStatus = NATS_OK; \ @@ -34533,7 +34533,7 @@ void test_MicroServiceStopsWhenServerStops(void) _startMicroservice(&m, nc, &cfg, NULL, 0, &arg); - const int numEndpoints = 4; + const int numEndpoints = 50; for (int i=0; i < numEndpoints; i++) { char buf[32];