about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-26 06:12:34 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-26 06:14:01 +0000
commit596dbef8b4b23657fd78dca4bc55e261c3f6b376 (patch)
tree0e9ee30c4a33be365388e11f8e9252d8f46152e0
parentc49cf315dadbf1cfe2f5e80c1f3c1ae27ad0761e (diff)
downloadcmogstored-596dbef8b4b23657fd78dca4bc55e261c3f6b376.tar.gz
This seems to fail more under heavy load, so wait a bit longer for
iostat to become aware of the new devices.
-rw-r--r--test/mgmt.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mgmt.rb b/test/mgmt.rb
index 9b3c7a3..7c650b8 100644
--- a/test/mgmt.rb
+++ b/test/mgmt.rb
@@ -321,14 +321,14 @@ class TestMgmt < Test::Unit::TestCase
     @client.write "watch\n"
     lines = []
 
-    2.times do # 2 times in case we're slow
+    3.times do # 3 times in case we're slow
       begin
         line = @client.gets
         lines << line
       end until line == ".\n"
     end
 
-    assert lines.grep(/\b#{max}\b/)[0]
+    assert lines.grep(/\b#{max}\b/)[0], lines.inspect
     assert_nil lines.grep(/\b#{max + 1}\b/)[0]
     assert File.exist?("#@tmpdir/dev#{max}/usage")
     assert ! File.exist?("#@tmpdir/dev#{max + 1}/usage")