Skip to content

Commit

Permalink
tests: add sleep to test_write_configuration overwrite check
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed May 10, 2024
1 parent a6d9375 commit 2f4c819
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hnn_core/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Rajat Partani <[email protected]>

from pathlib import Path
from time import sleep
import pytest
import numpy as np

Expand Down Expand Up @@ -168,6 +169,7 @@ def test_write_configuration(tmp_path, jones_2009_network):

# Overwrite network check
last_mod_time1 = path_out.stat().st_mtime
sleep(0.05)
jones_2009_network.write_configuration(path_out)
last_mod_time2 = path_out.stat().st_mtime
assert last_mod_time1 < last_mod_time2
Expand Down

0 comments on commit 2f4c819

Please sign in to comment.