From: Daigo Moriwaki Date: Sat, 17 Jan 2015 01:43:50 +0000 (+0900) Subject: Fix test failures related to MAX_MOVES and least time per move X-Git-Tag: 20170902~23^2~1 X-Git-Url: http://git.sourceforge.jp/view?p=shogi-server%2Fshogi-server.git;a=commitdiff_plain;h=66e7c4522f3597aef4f23eabedd718734459a1e7;hp=aee61c65df8564b76867252f9f299eb205676bfc;ds=sidebyside Fix test failures related to MAX_MOVES and least time per move --- diff --git a/test/TC_functional.rb b/test/TC_functional.rb index 51aca58..7f8d884 100644 --- a/test/TC_functional.rb +++ b/test/TC_functional.rb @@ -48,9 +48,9 @@ P9+KY+KE+GI+KI+OU+KI+GI+KE+KY + 'rating:atmark_B@p1+275876e34cf609db118f3d84b799a790:atmark_W@p2+275876e34cf609db118f3d84b799a790 +2726FU -T1 +T0 -3334FU -T1 +T0 %TORYO 'P1-KY-KE-GI-KI-OU-KI-GI-KE-KY 'P2 * -HI * * * * * -KA * @@ -115,9 +115,9 @@ P9+KY+KE+GI+KI+OU+KI+GI+KE+KY + 'rating:hc2p_hoge_B+275876e34cf609db118f3d84b799a790:hc2p_hoge_W+275876e34cf609db118f3d84b799a790 +2726FU -T1 +T0 -3334FU -T1 +T0 %TORYO 'P1-KY-KE-GI-KI-OU-KI-GI-KE-KY 'P2 * -HI * * * * * -KA * diff --git a/test/TC_max_moves_draw.rb b/test/TC_max_moves_draw.rb index da8df02..cdb8f90 100644 --- a/test/TC_max_moves_draw.rb +++ b/test/TC_max_moves_draw.rb @@ -10,8 +10,8 @@ class MaxMovesTest < ReadFileClient def test_max_moves_draw csa = File.open(filepath("max_moves_draw.csa")) {|f| f.read} handshake(csa) - @p1.wait(/#MAX_MOVES_DRAW\n#DRAW/) - @p2.wait(/#MAX_MOVES_DRAW\n#DRAW/) + @p1.wait(/#MAX_MOVES\n#CENSORED/) + @p2.wait(/#MAX_MOVES\n#CENSORED/) assert true logout12 end