Skip to content

Commit def00f3

Browse files
committed
address nit comments
1 parent df42160 commit def00f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/asyncio/test_async_appendable_object_writer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
GENERATION = 123
3131
WRITE_HANDLE = b"test-write-handle"
3232
PERSISTED_SIZE = 456
33-
_ONE_MIB = 1024 * 1024
33+
EIGHT_MIB = 8 * 1024 * 1024
3434

3535

3636
@pytest.fixture
@@ -101,10 +101,10 @@ def test_init_with_writer_options(mock_write_object_stream, mock_client):
101101
mock_client,
102102
BUCKET,
103103
OBJECT,
104-
writer_options={"FLUSH_INTERVAL_BYTES": 8 * _ONE_MIB},
104+
writer_options={"FLUSH_INTERVAL_BYTES": EIGHT_MIB},
105105
)
106106

107-
assert writer.flush_interval == 8 * _ONE_MIB
107+
assert writer.flush_interval == EIGHT_MIB
108108
assert writer.bytes_appended_since_last_flush == 0
109109

110110
mock_write_object_stream.assert_called_once_with(

0 commit comments

Comments
 (0)