Skip to content

Commit

Permalink
moved sleep statement in metadata reload step
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 4, 2024
1 parent 3e467b8 commit 53e50d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileformats/core/tests/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test_metadata_reload(file_with_metadata_fspath):
file_with_metadata = FileWithMetadata(file_with_metadata_fspath)
assert sorted(file_with_metadata.metadata) == ["a", "b", "c", "d", "e"]
# add new metadata line to check and check that it is reloaded
time.sleep(2)
with open(file_with_metadata, "a") as f:
f.write("\nf:6")
time.sleep(2)
assert sorted(file_with_metadata.metadata) == ["a", "b", "c", "d", "e", "f"]

0 comments on commit 53e50d3

Please sign in to comment.