Fix race conditions in command tests by increasing the delay time (#1178)

This commit is contained in:
Austin Shalit
2018-07-08 15:39:15 -04:00
committed by Peter Johnson
parent ad3e2d7d3b
commit f5b1028b5a
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ class CommandSequentialGroupTest extends AbstractCommandTest {
assertCommandState(command1, 1, 1, 1, 0, 0);
assertCommandState(command2, 0, 0, 0, 0, 0);
assertCommandState(command3, 0, 0, 0, 0, 0);
sleep(1000); // command 1 timeout
sleep(1250); // command 1 timeout
Scheduler.getInstance().run();
assertCommandState(command1, 1, 1, 1, 0, 1);
assertCommandState(command2, 1, 1, 1, 0, 0);
@@ -66,7 +66,7 @@ class CommandSequentialGroupTest extends AbstractCommandTest {
assertCommandState(command1, 1, 1, 1, 0, 1);
assertCommandState(command2, 1, 2, 2, 0, 0);
assertCommandState(command3, 0, 0, 0, 0, 0);
sleep(2000); // command 2 timeout
sleep(2500); // command 2 timeout
Scheduler.getInstance().run();
assertCommandState(command1, 1, 1, 1, 0, 1);
assertCommandState(command2, 1, 2, 2, 0, 1);

View File

@@ -38,7 +38,7 @@ class CommandTimeoutTest extends AbstractCommandTest {
assertCommandState(command, 1, 2, 2, 0, 0);
Scheduler.getInstance().run();
assertCommandState(command, 1, 3, 3, 0, 0);
sleep(2000);
sleep(2500);
Scheduler.getInstance().run();
assertCommandState(command, 1, 4, 4, 1, 0);
Scheduler.getInstance().run();