Skip to content

Commit 877b558

Browse files
committed
Fix flaky test
1 parent 05b03ab commit 877b558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ghcide-test/exe/EpsPollutionTests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ staleHieProvokesOverlapping =
6767
-- loadSysInterface(A) then runs and pollutes the EPS.
6868
changeDoc cdoc [TextDocumentContentChangeEvent . InR .
6969
TextDocumentContentChangeWholeDocument $ brokenC]
70+
void $ waitForDiagnosticsFrom cdoc
7071
void $ getHover cdoc (hoverOnMyMethod brokenC)
71-
void $ waitForDiagnosticsFrom cdoc -- let the broken state settle
7272
-- Repair C. The next typecheck legitimately has A in its HPT; with
7373
-- the polluted EPS it also has A's ClsInst in eps_inst_env, so
7474
-- instance resolution for 'myMethod x :: AType -> String' finds

0 commit comments

Comments
 (0)