chore: clarify current history path naming

This commit is contained in:
lingniu
2026-07-01 11:21:11 +08:00
parent 986fc2fac3
commit 61ad4a2439
8 changed files with 14 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ class DisruptorEventBusAwaitTest {
@Test
void publishAndAwaitDoesNotInvokeOptionalSinksWhenRequiredSinkIsAbsent() throws Exception {
CapturingSink optionalSink = new CapturingSink("event-file-store");
CapturingSink optionalSink = new CapturingSink("raw-archive");
try (DisruptorEventBus bus = new DisruptorEventBus(1024, "blocking", List.of(optionalSink))) {
assertThatThrownBy(() -> bus.publishAndAwait(event(), "kafka").join())

View File

@@ -31,9 +31,9 @@ class DispatcherDurableAckBoundaryTest {
@Test
void dispatchAndAwaitFailsWhenNoKafkaSinkAcceptsEvent() throws Exception {
EventSink fileSink = new NamedSink("event-file-store", true);
EventSink rawArchiveSink = new NamedSink("raw-archive", true);
try (Harness harness = new Harness(registryWithHeartbeatHandler(), List.of(fileSink), List.of())) {
try (Harness harness = new Harness(registryWithHeartbeatHandler(), List.of(rawArchiveSink), List.of())) {
CompletionStage<Void> future = harness.dispatcher.dispatchAndAwait(frame(0x07, "payload"));
assertThatThrownBy(() -> future.toCompletableFuture().join())