Skip to content

Commit e75a6e2

Browse files
committed
ABIChecker: update testABIComparisonEndToEnd
1 parent a0a9f84 commit e75a6e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Tests/SwiftDriverTests/APIDigesterTests.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,9 @@ class APIDigesterTests: XCTestCase {
383383
XCTAssertFalse(driver2.diagnosticEngine.hasErrors)
384384
let contents = try localFileSystem.readFileContents(path.appending(component: "changes.dia"))
385385
let diags = try SerializedDiagnostics(bytes: contents)
386-
XCTAssertEqual(diags.diagnostics.map(\.text), [
387-
"ABI breakage: var MyStruct.a in a non-resilient type changes position from 0 to 1",
388-
"ABI breakage: var MyStruct.b in a non-resilient type changes position from 1 to 0"
389-
])
386+
let messages = diags.diagnostics.map(\.text)
387+
XCTAssertTrue(messages.contains("ABI breakage: var MyStruct.a in a non-resilient type changes position from 0 to 1"))
388+
XCTAssertTrue(messages.contains("ABI breakage: var MyStruct.b in a non-resilient type changes position from 1 to 0"))
390389
}
391390
}
392391
}

0 commit comments

Comments
 (0)