OSDN Git Service
(root)
/
shogi-server
/
shogi-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e01b7c6
)
Improved stability of test results.
author
daigo
<beatles@users.sourceforge.jp>
Sat, 19 Jun 2010 08:06:06 +0000
(17:06 +0900)
committer
Daigo 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
patch
|
blob
|
history
diff --git
a/test/TC_functional.rb
b/test/TC_functional.rb
index
511598c
..
9b39a66
100644
(file)
--- a/
test/TC_functional.rb
+++ b/
test/TC_functional.rb
@@
-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)