Skip to content

Commit

Permalink
(issue #29) increased test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bluestreak01 committed Jan 28, 2015
1 parent 6415aba commit 4874f0d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014. Vlad Ilyushchenko
* Copyright (c) 2014-2015. Vlad Ilyushchenko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -189,7 +189,7 @@ public void testFiveNodesVoting() throws Exception {
long t;

t = System.currentTimeMillis();
while (standby.get() < 4 && TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - t) < 2) {
while (standby.get() < 4 && TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - t) < 30) {
Thread.yield();
}

Expand All @@ -207,7 +207,7 @@ public void testFiveNodesVoting() throws Exception {
// c1.halt();
//
t = System.currentTimeMillis();
while (standby.get() < 3 && TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - t) < 2) {
while (standby.get() < 3 && TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - t) < 30) {
Thread.yield();
}
//
Expand Down

0 comments on commit 4874f0d

Please sign in to comment.