diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-07-26 06:12:34 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-07-26 06:14:01 +0000 |
commit | 596dbef8b4b23657fd78dca4bc55e261c3f6b376 (patch) | |
tree | 0e9ee30c4a33be365388e11f8e9252d8f46152e0 | |
parent | c49cf315dadbf1cfe2f5e80c1f3c1ae27ad0761e (diff) | |
download | cmogstored-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.rb | 4 |
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") |