diff --git a/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java b/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java index 69ae66f..78f7b8f 100644 --- a/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java +++ b/quarkus-solace-messaging-connector/runtime/src/test/java/com/solace/quarkus/messaging/base/WeldTestBase.java @@ -12,6 +12,7 @@ import com.solace.quarkus.messaging.SolaceConnector; import com.solace.quarkus.messaging.converters.SolaceMessageConverter; +import io.quarkus.runtime.configuration.QuarkusConfigFactory; import io.smallrye.config.SmallRyeConfigProviderResolver; import io.smallrye.config.inject.ConfigExtension; import io.smallrye.reactive.messaging.providers.MediatorFactory; @@ -79,6 +80,8 @@ public void stopContainer() { } // Release the config objects SmallRyeConfigProviderResolver.instance().releaseConfig(ConfigProvider.getConfig()); + QuarkusConfigFactory.setConfig(null); + MapBasedConfig.cleanup(); } public BeanManager getBeanManager() {