use of com.hotels.styx.infrastructure.RegistryServiceAdapter in project styx by ExpediaGroup.
the class StyxServerTest method disablesResourceLeakDetectionByDefault.
@Test
public void disablesResourceLeakDetectionByDefault() {
StyxServerComponents config = new StyxServerComponents.Builder().registry(new MicrometerRegistry(new CompositeMeterRegistry())).configuration(EMPTY_CONFIGURATION).additionalServices(Map.of("backendServiceRegistry", new RegistryServiceAdapter(new MemoryBackedRegistry<>()))).build();
new StyxServer(config);
assertThat(ResourceLeakDetector.getLevel(), is(DISABLED));
}
Aggregations