Skip to content

Commit 5647029

Browse files
committed
test_out_forward: mock a duplicated object
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent de93fa1 commit 5647029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/plugin/test_out_forward.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def try_write(chunk)
344344
end
345345

346346
test 'set_compress_is_gzip_in_buffer_section' do
347-
mock = flexmock($log)
347+
mock = flexmock($log.dup)
348348
mock.should_receive(:log).with("buffer is compressed. If you also want to save the bandwidth of a network, Add `compress` configuration in <match>")
349349

350350
@d = d = create_driver(config + %[

0 commit comments

Comments
 (0)