Skip to content

Commit

Permalink
Fix StorageComponentTests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheard committed Feb 14, 2024
1 parent 72449ec commit a775498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FirebaseStorage/Tests/Unit/StorageComponentTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ class StorageComponentTests: StorageTestHelpers {
in: container)
XCTAssertNotNil(provider)

let storage1 = provider.storage(for: "randomBucket")
let storage2 = provider.storage(for: "randomBucket")
let storage1 = provider?.storage(for: "randomBucket")
let storage2 = provider?.storage(for: "randomBucket")
XCTAssertNotNil(storage1)

// Ensure they're the same instance.
XCTAssert(storage1 === storage2)

let storage3 = provider.storage(for: "differentBucket")
let storage3 = provider?.storage(for: "differentBucket")
XCTAssertNotNil(storage3)

XCTAssert(storage1 !== storage3)
Expand Down

0 comments on commit a775498

Please sign in to comment.