Skip to content

Commit d105251

Browse files
committed
Fix overeager assertion making compile tests intermittently fail
1 parent f064c5f commit d105251

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

modules/integration/src/test/scala/scala/cli/integration/CompileTestDefinitions.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -692,13 +692,9 @@ abstract class CompileTestDefinitions
692692
)
693693
.call(cwd = root, check = false, mergeErrIntoOut = true)
694694
expect(res.exitCode == 1)
695-
assertNoDiff(
696-
res.out.text(),
697-
"""Error occurred during initialization of VM
698-
|Too small maximum heap
699-
|Compilation failed
700-
|""".stripMargin
701-
)
695+
val out = res.out.text()
696+
expect(out.contains("Error occurred during initialization of VM"))
697+
expect(out.contains("Too small maximum heap"))
702698
}
703699
}
704700
}

0 commit comments

Comments
 (0)