Skip to content

Commit

Permalink
Adjusted test parameters, REPEAT micro on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Nov 1, 2024
1 parent a15995b commit bc40ea7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion buildOnTravis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit bc40ea7

Please sign in to comment.