Skip to content
Permalink
Browse files
Fix typo in useServiceDoesNotBlockInEventLoop.
  • Loading branch information
PengZheng committed Nov 6, 2021
1 parent c070b8a commit f6af626bdf75bdd91e887b0021031ff7e6f1fd5c
Showing 1 changed file with 4 additions and 2 deletions.
@@ -793,12 +793,14 @@ TEST_F(CelixBundleContextServicesTests, useServiceDoesNotBlockInEventLoop) {
opts.callbackHandle = (void*)ctx;
opts.filter.serviceName = "NA";
opts.set = set;
long trackerId = celix_bundleContext_trackServicesWithOptions(ctx, &opts);
long trackerId = celix_bundleContext_trackServicesWithOptionsAsync(ctx, &opts);
ASSERT_TRUE(trackerId >= 0);

void *svc2 = (void*)0x200; //no ranking
long svcId2 = celix_bundleContext_registerService(ctx, svc2, "NA", nullptr);
long svcId2 = celix_bundleContext_registerServiceAsync(ctx, svc2, "NotAvailable", nullptr);
ASSERT_GE(svcId2, 0);
celix_bundleContext_waitForAsyncTracker(ctx, trackerId);
celix_bundleContext_waitForAsyncRegistration(ctx, svcId2);

celix_bundleContext_unregisterService(ctx, svcId2);
celix_bundleContext_stopTracker(ctx, trackerId);

0 comments on commit f6af626

Please sign in to comment.