Skip to content

Commit

Permalink
Workaround the lifecycle management issue of IImportRegistration.
Browse files Browse the repository at this point in the history
It avoids a testing crash.
  • Loading branch information
PengZheng committed Sep 25, 2023
1 parent e7aee12 commit f371369
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ void celix::rsa::RemoteServiceAdmin::removeImportedServiceFactory(
importServiceFactories.erase(targetServiceName);

//TODO remove imported services from this factory ??needed
//FIXME yes, it will lead to crash if we uninstall the factory: https://github.com/apache/celix/issues/653
}

void celix::rsa::RemoteServiceAdmin::addExportedServiceFactory(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class RemoteServicesIntegrationTestSuite : public ::testing::Test {
PS_PSA_BUNDLE_LOC,
PS_WIRE_BUNDLE_LOC,
RS_DISCOVERY_BUNDLE_LOC,
RS_RSA_BUNDLE_LOC,
RS_FACTORY_BUNDLE_LOC };
RS_FACTORY_BUNDLE_LOC ,
RS_RSA_BUNDLE_LOC};
for (const auto& bndLoc : sharedBundles) {
auto bndId = ctx->installBundle(bndLoc);
EXPECT_GE(bndId, 0);
Expand Down

0 comments on commit f371369

Please sign in to comment.