Skip to content

Commit

Permalink
Better delay for test
Browse files Browse the repository at this point in the history
  • Loading branch information
tailhook committed Apr 12, 2017
1 parent 9cc60cd commit aeba5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/elect/test_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn test_voted_timeout() {
assert!(act.action == Some(Action::ConfirmVote(two.clone())));
assert!(matches!(node, Machine::Voted { .. }));

env.sleep(3000); // Large timeout, should be enough for new election
env.sleep(4000); // Large timeout, should be enough for new election
let (node, _) = node.time_passed(&env.info(), env.now());
assert!(matches!(node, Machine::Electing { epoch: 2, .. }));
}
Expand Down

0 comments on commit aeba5b9

Please sign in to comment.