diff --git a/CMakeLists.txt b/CMakeLists.txt index 9678f6803..1c2f60df7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,7 +177,9 @@ if(UNIX) else(APPLE) set(NATS_OS "LINUX") set(NATS_USE_PTHREAD "-pthread") - set(NATS_EXTRA_LIB "rt -lpthread") + if(NOT ANDROID) + set(NATS_EXTRA_LIB "rt -lpthread") + endif() endif(APPLE) if (${NATS_BUILD_ARCH} MATCHES "32") if(NOT APPLE) diff --git a/test/test.c b/test/test.c index ffd766310..0fe1ea7c9 100644 --- a/test/test.c +++ b/test/test.c @@ -30241,6 +30241,7 @@ test_JetStreamBackOffRedeliveries(void) so.Config.AckPolicy = js_AckExplicit; so.Config.DeliverPolicy = js_DeliverAll; so.Config.DeliverSubject = inbox; + so.Config.MaxDeliver = 2; so.Config.BackOff = (int64_t[]){NATS_MILLIS_TO_NANOS(50), NATS_MILLIS_TO_NANOS(250)}; so.Config.BackOffLen = 2; s = js_SubscribeSync(&sub, js, "foo", NULL, &so, &jerr);