From 596dbef8b4b23657fd78dca4bc55e261c3f6b376 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 26 Jul 2013 06:12:34 +0000 Subject: test/mgmt: increase reliability of max devid test This seems to fail more under heavy load, so wait a bit longer for iostat to become aware of the new devices. --- test/mgmt.rb | 4 ++-- 1 file 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") -- cgit v1.2.3-24-ge0c7