Skip to content

Commit

Permalink
Fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcairo committed Apr 29, 2024
1 parent e5aff13 commit 89612a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/SwiftProtobufTests/Test_TextFormat_Unknown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ final class Test_TextFormat_Unknown: XCTestCase, PBTestHelpers {
do {
let _ = try MessageTestType(textFormatString: text)
XCTFail("Shouldn't get here")
} catch TextFormatDecodingError.unknownField {
} catch let error as SwiftProtobufError where self.isSwiftProtobufErrorEqual(error, .TextFormatDecoding.unknownField()) {
// This is what should have happened.
}

Expand All @@ -140,7 +140,7 @@ final class Test_TextFormat_Unknown: XCTestCase, PBTestHelpers {
do {
let _ = try MessageTestType(textFormatString: text)
XCTFail("Shouldn't get here")
} catch TextFormatDecodingError.unknownField {
} catch let error as SwiftProtobufError where self.isSwiftProtobufErrorEqual(error, .TextFormatDecoding.unknownField()) {
// This is what should have happened.
}

Expand Down Expand Up @@ -175,7 +175,7 @@ final class Test_TextFormat_Unknown: XCTestCase, PBTestHelpers {
do {
let _ = try MessageTestType(textFormatString: text)
XCTFail("Shouldn't get here")
} catch TextFormatDecodingError.unknownField {
} catch let error as SwiftProtobufError where self.isSwiftProtobufErrorEqual(error, .TextFormatDecoding.unknownField()) {
// This is what should have happened.
}

Expand Down

0 comments on commit 89612a7

Please sign in to comment.