mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-12 20:15:56 +00:00
test_open_file_cache_invalidate: Add delay to hopefully improve robustness
This commit is contained in:
1 parent
9f34099ba6
commit
5bb6ff4746
1 file changed
+4
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -33,6 +34,9 @@ class TestLanguageServerCommonFunctionality:
|
||||
with open(file_path, "w") as f:
|
||||
f.write(test_string2)
|
||||
|
||||
# give the file system some time to update the modified time
|
||||
time.sleep(3)
|
||||
|
||||
# check that the file buffer has been invalidated and reloaded
|
||||
assert fb.contents == test_string2
|
||||
|
||||
|
||||
Reference in new issue
Block a user