Skip to content

Commit cde76ea

Browse files
authored
Update testBuildCompleteMessage to be more tolerant to incremental differences (#5851)
1 parent dbd6a46 commit cde76ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/CommandsTests/BuildToolTests.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,12 @@ final class BuildToolTests: CommandsTestCase {
289289
}
290290

291291
do {
292-
// test second time, to make sure message is presented even when nothing to build (cached)
292+
// test second time, to stabilize the cache
293+
let _ = try execute([], packagePath: fixturePath)
294+
}
295+
296+
do {
297+
// test third time, to make sure message is presented even when nothing to build (cached)
293298
let result = try execute([], packagePath: fixturePath)
294299
XCTAssertNoMatch(result.stdout, .regex("\\[[1-9][0-9]*\\/[1-9][0-9]*\\] Compiling"))
295300
let lines = result.stdout.split(separator: "\n")

0 commit comments

Comments
 (0)