Skip to content

Commit

Permalink
Broaden flaky test retry (#3466)
Browse files Browse the repository at this point in the history
Need to retry the entire `integrationTest` block to ensure it has a
clean slate each try
  • Loading branch information
lihaoyi authored Sep 5, 2024
1 parent 75b7cfa commit 2410fc0
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ object ScriptsInvalidationTests extends UtestIntegrationTestSuite {

assert(result2 == expected2)
}
test("should handle ammonite ^ imports") - integrationTest { tester =>
import tester._
retry(3) {
test("should handle ammonite ^ imports") - retry(3) {
integrationTest { tester =>
import tester._

// first run
val result = runTask(tester, "taskE")
val expected = Set("a", "e", "taskE")
Expand Down

0 comments on commit 2410fc0

Please sign in to comment.