diff options
author | Hleb Valoshka <375GNU@Gmail.COM> | 2013-08-24 17:31:42 +0300 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-02 21:17:25 +0000 |
commit | 5c99abe6108d8d6a52c07b969afbc556c59b33be (patch) | |
tree | 81c167bbcfd2712902a7c430ff56d9a3b3aa1d53 | |
parent | fc88b648ca5c2ba6c845c357192d7e36f9dedc5c (diff) | |
download | kgio-5c99abe6108d8d6a52c07b969afbc556c59b33be.tar.gz |
Signed-off-by: Eric Wong <normalperson@yhbt.net>
-rw-r--r-- | test/lib_read_write.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lib_read_write.rb b/test/lib_read_write.rb index 586e826..7df9a79 100644 --- a/test/lib_read_write.rb +++ b/test/lib_read_write.rb @@ -356,7 +356,8 @@ module LibReadWriteTest readed = @rd.read(RANDOM_BLOB.size) thr.join assert_nil thr.value - assert_equal RANDOM_BLOB, readed + e = (RANDOM_BLOB == readed) + assert e end def test_monster_write_wait_writable @@ -388,7 +389,8 @@ module LibReadWriteTest readed = @rd.read(buf_size) thr.join assert_nil thr.value - assert_equal buf.join, readed + e = (buf.join == readed) + assert e assert @wr.instance_variable_get(:@nr) > 0 end |