Skip to content

Commit

Permalink
add sleep to testNotifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav Maji committed Oct 17, 2024
1 parent c636dd1 commit e3b1cad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ public void testReportStartWhenRestarting(AAConfig aaConfig) throws Exception {
}, aaConfig);
}

@Test(dataProvider = "aaConfigProvider")
@Test(dataProvider = "aaConfigProvider", invocationCount = 800)
public void testNotifier(AAConfig aaConfig) throws Exception {
localVeniceWriter.broadcastStartOfPush(new HashMap<>());
long fooLastOffset = getOffset(localVeniceWriter.put(putKeyFoo, putValue, SCHEMA_ID));
Expand All @@ -1508,6 +1508,7 @@ public void testNotifier(AAConfig aaConfig) throws Exception {
doReturn(fooLastOffset + 1).when(mockTopicManager).getLatestOffsetCached(any(), eq(PARTITION_FOO));
doReturn(barLastOffset + 1).when(mockTopicManager).getLatestOffsetCached(any(), eq(PARTITION_BAR));

Utils.sleep(500);
runTest(Utils.setOf(PARTITION_FOO, PARTITION_BAR), () -> {
/**
* Considering that the {@link VeniceWriter} will send an {@link ControlMessageType#END_OF_PUSH},
Expand Down

0 comments on commit e3b1cad

Please sign in to comment.