Skip to content

Commit 35b6c12

Browse files
committed
Fix expected output in swift-format SkipUnless check
We weren’t hitting this in Swift CI because we only test against Swift 6.2 toolchains, which take an earlier exit based on the Swift version.
1 parent 6eb8006 commit 35b6c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SKTestSupport/SkipUnless.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ package actor SkipUnless {
372372
let output = try result.utf8Output()
373373
switch output {
374374
case "": return false
375-
case "let x = 1": return true
376-
default: throw GenericError("Received unexpected formatting output: \(output)")
375+
case "let x = 1\n": return true
376+
default: throw GenericError("Received unexpected formatting output: '\(output)'")
377377
}
378378
}
379379
}

0 commit comments

Comments
 (0)