Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Try to fix the Travis CI build error
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemJiang committed Aug 17, 2019
1 parent 06d837d commit 6ab3a53
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,16 @@ public void assertOnSwitchOtherCallbackInstance() {
.build();
asyncStub.onConnected(config, commandStreamObserver);

await().atMost(1, SECONDS).until(() -> (OmegaCallbacksRegistry.getRegistry().get(serviceName) != null));
await().atMost(1, SECONDS).until(() -> (OmegaCallbacksRegistry.getRegistry().get(serviceName).size() == 2));
await().atMost(2, SECONDS).until(() -> (OmegaCallbacksRegistry.getRegistry().get(serviceName) != null));
await().atMost(2, SECONDS).until(() -> (OmegaCallbacksRegistry.getRegistry().get(serviceName).size() == 2));

OmegaCallbacksRegistry.getRegistry().get(serviceName).remove(instanceId);
blockingStub.onTccTransactionStarted(newTxStart());
blockingStub.onParticipationStarted(newParticipationStartedEvent());
blockingStub.onParticipationEnded(newParticipationEndedEvent("Succeed"));
GrpcAck result = blockingStub.onTccTransactionEnded(newTxEnd("Succeed"));

await().atMost(2, SECONDS).until(() -> !receivedCommands.isEmpty());
await().atMost(4, SECONDS).until(() -> !receivedCommands.isEmpty());
assertThat(receivedCommands.size(), is(1));
GrpcTccCoordinateCommand command = receivedCommands.poll();
assertThat(command.getMethod(), is("confirm"));
Expand Down

0 comments on commit 6ab3a53

Please sign in to comment.