Skip to content

Commit ceee14e

Browse files
authored
Fix Storage integration test (#13258)
1 parent c259079 commit ceee14e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FirebaseStorage/Tests/Integration/StorageIntegration.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ class StorageResultTests: StorageIntegrationCommon {
204204
case let .unauthorized(bucket, object, serverError):
205205
XCTAssertEqual(bucket, "ios-opensource-samples.appspot.com")
206206
XCTAssertEqual(object, file)
207-
XCTAssertNil(serverError)
207+
XCTAssertNotNil(serverError)
208+
XCTAssertEqual(serverError["ResponseErrorCode"] as? Int, 403)
208209
expectation.fulfill()
209210
default:
210211
XCTFail("Failed with unexpected error: \(error)")

0 commit comments

Comments
 (0)