OSDN Git Service

Improved stability of test results.
authordaigo <beatles@users.sourceforge.jp>
Sat, 19 Jun 2010 08:06:06 +0000 (17:06 +0900)
committerDaigo Moriwaki <daigo@debian.org>
Sat, 19 Jun 2010 08:06:06 +0000 (17:06 +0900)
TestTwoSameMoves#test_two_same_moves might sometimes fail. Adding a short
sleep interval makes this issue happen less likely.  10 of 10 trials
were successful.

test/TC_functional.rb

index 511598c..9b39a66 100644 (file)
@@ -318,6 +318,7 @@ class TestTwoSameMoves < CSABaseClient
       move  "+2726FU"
       move "-8384FU"
       @p2.puts "-8384FU" # ignored
+      sleep 0.1 # wait for finish of the command above
       move "+2625FU"
     end
     assert(/#ILLEGAL_MOVE/ !~ result)