Disable randomly failing assertion #814

This commit is contained in:
Dominik Jain authored and Dominik Jain committed 2025-12-06 13:59:12 +01:00
1 parent 01ec8465fb
commit 4982622b6a
1 file changed
+4
@@ -119,9 +119,13 @@ class TestCSharpLanguageServer:
# Check that we have references from both files
assert any("Program.cs" in ref_file for ref_file in ref_files), "Should find reference in Program.cs"
# TODO: The assertion below fails randomly. Try to fix this. GitHub issue #814
# In CI, it sometimes passed; on my local machine (opcode81), it seems to fail consistently.
"""
assert any(
os.path.join("Models", "Person.cs") in ref_file for ref_file in ref_files
), "Should find reference in Models/Person.cs where Calculator.Subtract is called"
"""
# check for a second time, since the first call may trigger initialization and change the state of the LS
refs_second_call = language_server.request_references(file_path, sel_start["line"], sel_start["character"] + 1)