diff options
Diffstat (limited to 'test/test_wbuf.rb')
-rw-r--r-- | test/test_wbuf.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_wbuf.rb b/test/test_wbuf.rb index 03abbac..a9dc717 100644 --- a/test/test_wbuf.rb +++ b/test/test_wbuf.rb @@ -18,7 +18,7 @@ class TestWbuf < Testcase buf = "*" * (16384 * 2) nr = 1000 [ true, false ].each do |persist| - wbuf = Yahns::Wbuf.new([], persist) + wbuf = Yahns::Wbuf.new([], persist, Dir.tmpdir) a, b = socketpair assert_nil wbuf.wbuf_write(a, "HIHI") assert_equal "HIHI", b.read(4) @@ -67,7 +67,7 @@ class TestWbuf < Testcase break end while true end - wbuf = Yahns::Wbuf.new([], true) + wbuf = Yahns::Wbuf.new([], true, Dir.tmpdir) assert_equal :wait_writable, wbuf.wbuf_write(a, buf) assert_equal :wait_writable, wbuf.wbuf_flush(a) @@ -96,7 +96,7 @@ class TestWbuf < Testcase def test_wbuf_flush_close pipe = cloexec_pipe persist = true - wbuf = Yahns::Wbuf.new(pipe[0], persist) + wbuf = Yahns::Wbuf.new(pipe[0], persist, Dir.tmpdir) refute wbuf.respond_to?(:close) # we don't want this for HttpResponse body sp = socketpair rv = nil |