Skip to content

Commit 0d48922

Browse files
committed
Try longer wait in Rust/Changes.hs
1 parent 7178232 commit 0d48922

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/app/Spec/Tests/Rust/Changes.hs

+6-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ changesTests = describe "Changes" $ do
2020
it [i|Simple change|] $ doSession' "main.ipynb" "rust-analyzer" [i|println("hi");|] $ \filename -> do
2121
ident <- openDoc filename "haskell"
2222

23-
waitForDiagnostics >>= \diags -> do
24-
assertDiagnosticRanges' (L.sortBy (compare `on` (^. LSP.message)) diags) [
25-
(Range (Position 0 0) (Position 0 7), Just (InR "E0423"), "expected function, found macro `println`\nnot a function")
26-
, (Range (Position 0 7) (Position 0 7), Just (InR "E0423"), "use `!` to invoke the macro: `!`")
27-
]
23+
waitUntil 120.0 $ do
24+
waitForDiagnostics >>= \diags -> do
25+
assertDiagnosticRanges' (L.sortBy (compare `on` (^. LSP.message)) diags) [
26+
(Range (Position 0 0) (Position 0 7), Just (InR "E0423"), "expected function, found macro `println`\nnot a function")
27+
, (Range (Position 0 7) (Position 0 7), Just (InR "E0423"), "use `!` to invoke the macro: `!`")
28+
]
2829

2930
changeDoc ident [TextDocumentContentChangeEvent $ InL (#range .== (Range (p 0 7) (p 0 7)) .+ #rangeLength .== Nothing .+ #text .== "z")]
3031

0 commit comments

Comments
 (0)