diff options
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r-- | test/socket/test_nonblock.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 55198ba4dd..3f8d548c5e 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + begin require "socket" require "io/nonblock" @@ -129,7 +131,7 @@ class TestSocketNonblock < Test::Unit::TestCase mesg = u1.recv_nonblock(100) assert_equal("", mesg) - buf = "short" + buf = "short".dup out = "hello world" * 4 out.freeze u2.send(out, 0, u1.getsockname) |