Skip to content

Commit

Permalink
Casts the size of a MemoryRecordsBuilder object (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiwakaba authored Feb 7, 2025
1 parent aaf1bc5 commit 47c1be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/record/test_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def test_memory_records_builder(magic, compression_type):
# Size should remain the same after closing. No trailing bytes
builder.close()
assert builder.compression_rate() > 0
expected_size = size_before_close * builder.compression_rate()
expected_size = int(size_before_close * builder.compression_rate())
assert builder.is_full()
assert builder.size_in_bytes() == expected_size
buffer = builder.buffer()
Expand Down

0 comments on commit 47c1be6

Please # to comment.