From f4122ed75584dcfe23693b1806acc7e0452f73ed Mon Sep 17 00:00:00 2001 From: Lev Brouk Date: Sun, 3 Nov 2024 05:44:20 -0800 Subject: [PATCH] TRY MORE, +6 --- .github/workflows/build-test.yml | 4 +--- test/test.c | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index e46653f0..a3040af8 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -181,9 +181,7 @@ jobs: export PATH=../deps/nats-server:../deps/nats-streaming-server:$PATH export NATS_TEST_SERVER_VERSION="$(nats-server -v)" flags="" - set +e - for i in $(seq 1 10); do ./bin/testsuite MicroStartStop; done - # ctest -R 'Micro' --timeout 60 --output-on-failure --repeat-until-fail 30 + ctest -R 'MicroStartStop' --timeout 60 --output-on-failure --repeat-until-fail 30 # ctest -L 'test' --timeout 60 --output-on-failure --repeat-until-fail ${{ inputs.repeat }} - name: Upload coverage reports to Codecov diff --git a/test/test.c b/test/test.c index 81dc7e18..14439c87 100644 --- a/test/test.c +++ b/test/test.c @@ -33576,6 +33576,12 @@ _startManyMicroservices(microService** svcs, int n, natsConnection *nc, microSer for (i = 0; i < n; i++) { + char buf[64]; + cfg->Version = "1.0.0"; + cfg->Description = "returns 42", + + snprintf(buf, sizeof(buf), "CoolService-%d", i); + cfg->Name = buf; _startMicroserviceOK(&(svcs[i]), nc, cfg, eps, num_eps, arg); } @@ -34098,9 +34104,6 @@ void test_MicroBasics(void) &ep2_cfg, }; microServiceConfig cfg = { - .Version = "1.0.0", - .Name = "CoolService", - .Description = "returns 42", .Metadata = (natsMetadata){ .List = (const char *[]){"skey1", "svalue1", "skey2", "svalue2"}, .Count = 2, @@ -34368,9 +34371,6 @@ void test_MicroStartStop(void) .Handler = _microHandleRequest42, }; microServiceConfig cfg = { - .Version = "1.0.0", - .Name = "CoolService", - .Description = "returns 42", .Endpoint = &ep_cfg, }; natsMsg *reply = NULL;