We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
TestSocket#test_bintime
1 parent 81df2bd commit 07e52c8Copy full SHA for 07e52c8
1 file changed
test/socket/test_socket.rb
@@ -548,7 +548,8 @@ def test_bintime
548
timestamp_retry_rw(s1, :BINTIME)
549
}
550
t = stamp.timestamp
551
- assert_equal(stamp.data.unpack1("Q", offset: -8), t.subsec * 2**64)
+ data = stamp.data
552
+ assert_equal(data.unpack1("Q", offset: data.bytesize-8), t.subsec * 2**64)
553
end
554
555
def test_closed_read
0 commit comments