Skip to content

Commit cba42f3

Browse files
committed
improve comments for test
1 parent f23ee85 commit cba42f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_group.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,11 @@ def test_group_members_performance(store: MemoryStore) -> None:
15081508
group_read = zarr.group(store=latency_store)
15091509

15101510
# check how long it takes to iterate over the groups
1511+
# if .members is sensitive to IO latency,
1512+
# this should take (num_groups * get_latency) seconds
1513+
# otherwise, it should take only marginally more than get_latency seconds
15111514
start = time.time()
15121515
_ = group_read.members()
15131516
elapsed = time.time() - start
1517+
15141518
assert elapsed < (1.1 * get_latency) + 0.001

0 commit comments

Comments
 (0)