diff --git a/src/micro.c b/src/micro.c index e4c461d1..48385ec7 100644 --- a/src/micro.c +++ b/src/micro.c @@ -288,7 +288,7 @@ _detach_service_from_connection(natsConnection *nc, microService *m) if (nc == NULL || m == NULL) return false; - printf("<>/<> _detachING_service_from_connection %s: remaining: %d, removed: %d\n", m->cfg->Name, remaining, removed); + printf("<>/<> _detachING_service_from_connection %s\n", m->cfg->Name); natsConn_Lock(nc); for (int i = 0; i < nc->numServices; i++) { @@ -408,7 +408,6 @@ void micro_release_endpoint_when_unsubscribed(void *closure) if ((m == NULL) || (m->service_mu == NULL)) return; - printf("<>/<> SUB complete: service %s, endpoint %s\n", m->cfg->Name, ep->subject); micro_lock_endpoint(ep); sub = ep->sub; ep->sub = NULL; // Force the subscription to be destroyed now, so NULL out the pointer to avoid a double free. diff --git a/test/test.c b/test/test.c index 14439c87..4965fb0a 100644 --- a/test/test.c +++ b/test/test.c @@ -33561,7 +33561,7 @@ _startMicroservice(microService** new_m, natsConnection *nc, microServiceConfig static void _startMicroserviceOK(microService** new_m, natsConnection *nc, microServiceConfig *cfg, microEndpointConfig **eps, int num_eps, struct threadArg *arg) { - char buf[64]; + char buf[256]; snprintf(buf, sizeof(buf), "Start microservice %s: ", cfg->Name); test(buf); @@ -34414,6 +34414,7 @@ void test_MicroStartStop(void) for (i = 0; i < NUM_MICRO_SERVICES; i++) { _destroyMicroservice(svcs[i]); + nats_Sleep(100); // <>/<> } _waitForMicroservicesAllDone(&arg);