Skip to content

Commit

Permalink
Check for atleast 1 attempt instead of exactly one
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarW committed Jul 11, 2018
1 parent efc873c commit d50b6da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public void stopReplicationOnShutdown() throws NoLeaderFoundException, Interrupt
assertThat( replicatingThread.getReplicationException().getCause(), Matchers.instanceOf( AvailabilityGuard.UnavailableException.class ) );

verify( replicationMonitor, times( 1 ) ).startReplication();
verify( replicationMonitor, times( 1 ) ).replicationAttempt();
verify( replicationMonitor, atLeast( 1 ) ).replicationAttempt();
verify( replicationMonitor, never() ).successfulReplication();
verify( replicationMonitor, times( 1 ) ).failedReplication( any() );
}
Expand Down

0 comments on commit d50b6da

Please sign in to comment.