Skip to content

Commit

Permalink
Update DDCrashReportBuilderTest for iOS 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ncreated committed Sep 27, 2021
1 parent f1e018a commit 7024d9b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class DDCrashReportBuilderTests: XCTestCase {
"`DDCrashReport` should include the image for `DatadogCrashReportingTests`"
)
XCTAssertTrue(
ddCrashReport.binaryImages.contains(where: { $0.libraryName == "XCTest" }),
// Assert on prefix as it's `XCTestCore` on iOS 15+ and `XCTest` earlier:
ddCrashReport.binaryImages.contains(where: { $0.libraryName.hasPrefix("XCTest") }),
"`DDCrashReport` should include the image for `XCTest`"
)
}
Expand Down

0 comments on commit 7024d9b

Please sign in to comment.