Skip to content

Commit c9cf77d

Browse files
committed
[test/terminology] Increase sleep time for macOS
The terminology refresh test requires a brief sleep between creating the original file and the refresh of the same file to receive different mtimes. On Linux 0.100s is sufficient, macOS requires a time > 0.700ms.
1 parent 349e6e2 commit c9cf77d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_terminology.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ def test_terminology_refresh(self):
104104
self.assertIn(curr_file, load_map)
105105
self.assertEqual(orig_map[curr_file], load_map[curr_file])
106106

107-
# Sleep is needed since the tests might be too fast to result in a different file mtime
108-
sleep(0.100)
107+
# Sleep is needed since the tests might be too fast to result in a
108+
# different file mtime. macOS seems to require sleep time > 0.700.
109+
sleep(0.800)
109110

110111
# Test refresh loads same cached files but changes them.
111112
# Different mtimes and id strings are sufficient.

0 commit comments

Comments
 (0)