Skip to content

Commit 34a5efc

Browse files
author
Zach Banks
committed
FIX: Fix flaky test_to_parquet_overwrite
1 parent ec4170b commit 34a5efc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_historical_bento.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,15 @@ def test_to_parquet_overwrite(
365365
dbnstore = DBNStore.from_bytes(data=stub_data)
366366
parquet_path = tmp_path / "my_test.parquet"
367367
dbnstore.to_parquet(path=parquet_path)
368-
assert parquet_path.stat().st_size == 9888
368+
parquet_size = parquet_path.stat().st_size
369369

370370
# Act
371371
dbnstore.to_parquet(path=parquet_path)
372372

373373
# Assert
374+
assert parquet_size > 0 # Should be about ~9000 bytes
374375
assert parquet_path.exists()
375-
assert parquet_path.stat().st_size == 9888
376+
assert parquet_path.stat().st_size == parquet_size
376377

377378

378379
def test_to_parquet_exclusive(

0 commit comments

Comments
 (0)