Skip to content

Commit

Permalink
Try to fix flaky integration test (clojure-lsp#1112)
Browse files Browse the repository at this point in the history
Waits for both did-open diagnostics and did-change diagnostics, to ensure change is actually applied before checking for it.
  • Loading branch information
mainej authored Jul 9, 2022
1 parent c0ac56e commit 1af9b90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/integration-test/integration/text_change_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
(lsp/request! (fixture/initialize-request))
(lsp/notify! (fixture/initialized-notification))
(lsp/notify! (fixture/did-open-notification sample-file-path))
(lsp/client-awaits-server-diagnostics sample-file-path)

(testing "Change is applied"
(is (= "original"
Expand Down

0 comments on commit 1af9b90

Please sign in to comment.