Skip to content

Commit

Permalink
Casts the size of a MemoryRecordsBuilder object
Browse files Browse the repository at this point in the history
  • Loading branch information
hiwakaba committed Jun 17, 2024
1 parent a6d0579 commit 006effb
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 006effb

Please sign in to comment.