File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
FirebaseStorage/Tests/SwiftIntegration Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class StorageIntegration: XCTestCase {
40
40
signInAndWait ( )
41
41
}
42
42
43
- if !StorageIntegration. once {
43
+ // if !StorageIntegration.once {
44
44
let setupExpectation = expectation ( description: " setUp " )
45
45
46
46
let largeFiles = [ " ios/public/1mb " ]
@@ -75,7 +75,7 @@ class StorageIntegration: XCTestCase {
75
75
}
76
76
waitForExpectations ( )
77
77
StorageIntegration . once = true
78
- }
78
+ // }
79
79
}
80
80
81
81
override func tearDown( ) {
@@ -497,10 +497,14 @@ class StorageIntegration: XCTestCase {
497
497
let tmpDirURL = URL ( fileURLWithPath: NSTemporaryDirectory ( ) )
498
498
let fileURL = tmpDirURL. appendingPathComponent ( " hello.dat " )
499
499
let task = ref. write ( toFile: fileURL)
500
+ var failed = false // Only fail once
500
501
501
502
task. observe ( StorageTaskStatus . failure, handler: { snapshot in
502
503
XCTAssertTrue ( snapshot. description. starts ( with: " <State: Failed " ) )
503
- expectation. fulfill ( )
504
+ if !failed {
505
+ failed = true
506
+ expectation. fulfill ( )
507
+ }
504
508
} )
505
509
506
510
task. observe ( StorageTaskStatus . progress, handler: { _ in
You can’t perform that action at this time.
0 commit comments