about summary refs log tree commit homepage
path: root/test/graceful_quit.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-17 10:47:37 +0000
committerEric Wong <normalperson@yhbt.net>2012-03-17 10:47:37 +0000
commit92a35ce663d3c399656bc467cd507b63483cdfda (patch)
treeefcee5c494052d3bbf1a46e6aa03b4672f217d66 /test/graceful_quit.rb
parentf95736fedefcc1ccf1014e529658f86300857243 (diff)
downloadcmogstored-92a35ce663d3c399656bc467cd507b63483cdfda.tar.gz
Valgrind makes things slow...
Diffstat (limited to 'test/graceful_quit.rb')
-rw-r--r--test/graceful_quit.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/graceful_quit.rb b/test/graceful_quit.rb
index 331bda4..4b97416 100644
--- a/test/graceful_quit.rb
+++ b/test/graceful_quit.rb
@@ -200,8 +200,13 @@ class TestGracefulQuit < Test::Unit::TestCase
       fp.write('.')
     end
     client = get_client(666, @mgmt)
-    client.write("MD5 /dev666/sparse-file.fid\r\n")
+    client.write("size /dev666/sparse-file.fid\r\n")
+    assert_equal "/dev666/sparse-file.fid 104857600\r\n", client.gets
+
+    "MD5 /dev666/sparse-file.fid\r\n".each_byte do |x|
     t_yield
+      client.write(x.chr)
+    end
     Process.kill(:QUIT, @pid)
     t_yield