From 5bb6ff47464d581f9cade2084e3be3faa452df6c Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Fri, 20 Feb 2026 15:57:01 +0100 Subject: [PATCH] test_open_file_cache_invalidate: Add delay to hopefully improve robustness --- test/solidlsp/test_ls_common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/solidlsp/test_ls_common.py b/test/solidlsp/test_ls_common.py index d43cf836..1bb464f8 100644 --- a/test/solidlsp/test_ls_common.py +++ b/test/solidlsp/test_ls_common.py @@ -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