about summary refs log tree commit homepage
path: root/test/mgmt.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-02-17 21:44:31 +0000
committerEric Wong <normalperson@yhbt.net>2012-02-17 22:50:19 +0000
commitfd2428590505ffa3e14dfa6df55520bbecff6231 (patch)
tree7d7bf76fb6e9942c010662afb7760c11d3329924 /test/mgmt.rb
parent6b47e8517ba04da10719b0fbfd9c6ccb7010d806 (diff)
downloadcmogstored-fd2428590505ffa3e14dfa6df55520bbecff6231.tar.gz
Also we'll have better splitting of test cases into fast/slow
portions.
Diffstat (limited to 'test/mgmt.rb')
-rw-r--r--test/mgmt.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/mgmt.rb b/test/mgmt.rb
index c18ca96..45ba981 100644
--- a/test/mgmt.rb
+++ b/test/mgmt.rb
@@ -22,14 +22,7 @@ class TestMgmt < Test::Unit::TestCase
       @err.close
       exec(*cmd)
     }
-    tries = 300
-    begin
-      sleep 0.05
-      @client = TCPSocket.new(@host, @port)
-      @to_close << @client
-      break
-    rescue
-    end while (tries-=1) > 0
+    @client = get_client
   end
 
   def teardown