shogi-server source
Revisión | abaf5a8c9f6ec6fe8ec4cf2859fb249e60bfaa0d (tree) |
---|---|
Tiempo | 2011-12-04 14:42:05 |
Autor | Daigo Moriwaki <beatles@user...> |
Commiter | Daigo Moriwaki |
Corrected timing issue.
@@ -1,4 +1,6 @@ | ||
1 | -require "baseclient" | |
1 | +$:.unshift File.join(File.dirname(__FILE__), "..") | |
2 | +$topdir = File.expand_path File.dirname(__FILE__) | |
3 | +require "test/baseclient" | |
2 | 4 | require "kconv" |
3 | 5 | |
4 | 6 | class TestBeforeAgree < BaseClient |
@@ -7,6 +9,7 @@ class TestBeforeAgree < BaseClient | ||
7 | 9 | login |
8 | 10 | |
9 | 11 | @p1.puts "AGREE" |
12 | + sleep 0.1 | |
10 | 13 | @p2.puts "LOGOUT" |
11 | 14 | @p1.wait /^REJECT/ |
12 | 15 | @p2.wait /^REJECT/ |
@@ -17,6 +20,7 @@ class TestBeforeAgree < BaseClient | ||
17 | 20 | login |
18 | 21 | |
19 | 22 | @p2.puts "AGREE" |
23 | + sleep 0.1 | |
20 | 24 | @p1.puts "LOGOUT" |
21 | 25 | @p1.wait /^REJECT/ |
22 | 26 | @p2.wait /^REJECT/ |
@@ -26,6 +30,7 @@ class TestBeforeAgree < BaseClient | ||
26 | 30 | def test_gote_logout_before_sente_agree |
27 | 31 | login |
28 | 32 | |
33 | + sleep 0.1 | |
29 | 34 | @p2.puts "LOGOUT" |
30 | 35 | @p1.wait /^REJECT/ |
31 | 36 | @p2.wait /^REJECT/ |
@@ -35,6 +40,7 @@ class TestBeforeAgree < BaseClient | ||
35 | 40 | def test_sente_logout_before_gote_agree |
36 | 41 | login |
37 | 42 | |
43 | + sleep 0.1 | |
38 | 44 | @p1.puts "LOGOUT" |
39 | 45 | @p1.wait /^REJECT/ |
40 | 46 | @p2.wait /^REJECT/ |