Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoyi Chen committed Dec 9, 2023
1 parent 0878076 commit 3b9e9a8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ public void onEvent(Replicator replicator, Event event) {

if (event instanceof PostRdbSyncEvent) {
if (flag.compareAndSet(false, true)) {
// will trigger full sync at this time
close(replicator);
Thread thread = new Thread(new JRun());
thread.setDaemon(true);
thread.start();
Expand Down Expand Up @@ -129,7 +131,7 @@ public void onEvent(Replicator replicator, Event event) {
}
});
r.open();
assertEquals(2, acc1.get());
assertEquals(3, acc1.get());
assertEquals(1500, acc.get());
}

Expand Down

0 comments on commit 3b9e9a8

Please sign in to comment.