use of io.aeron.test.driver.RedirectingNameResolver in project Aeron by real-logic.
the class NameReResolutionTest method before.
@BeforeEach
void before() {
assumeBindAddressAvailable("127.0.0.1");
assumeBindAddressAvailable("127.0.0.2");
final MediaDriver.Context context = new MediaDriver.Context().publicationTermBufferLength(LogBufferDescriptor.TERM_MIN_LENGTH).dirDeleteOnStart(true).threadingMode(ThreadingMode.SHARED).nameResolver(new RedirectingNameResolver(STUB_LOOKUP_CONFIGURATION));
try {
driver = TestMediaDriver.launch(context, systemTestWatcher);
} finally {
systemTestWatcher.dataCollector().add(context.aeronDirectory());
}
client = Aeron.connect(new Aeron.Context().aeronDirectoryName(context.aeronDirectoryName()));
countersReader = client.countersReader();
}
Aggregations