Skip to content

Commit

Permalink
test: try to fix cancel-compile in BillLspSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
kasiaMarek committed Oct 5, 2023
1 parent e3b108a commit 91e36ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/src/test/scala/tests/BillLspSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ class BillLspSuite extends BaseLspSuite("bill") {
server.executeCommand(ServerCommands.CancelCompile)
}
_ = assertEquals(compileReport.getStatusCode(), StatusCode.CANCELLED)
// wait for all the side effect (`onComplete`) actions of cancellation to happen
_ = Thread.sleep(1000)
currentTrace = trace
cancelMatch = cancelPattern.findFirstMatchIn(currentTrace)
_ = assert(cancelMatch.nonEmpty, trace)
Expand Down

0 comments on commit 91e36ff

Please sign in to comment.