File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
FirebaseStorageInternal/Tests/Integration Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -654,19 +654,20 @@ - (void)testUpdateMetadata {
654
654
// "a" is now deleted and the empty string for "y" remains.
655
655
customMetadata: @{@" c" : @" d" , @" y" : @" " }];
656
656
657
- // Clear all metadata.
657
+ // Clear all metadata with nils .
658
658
FIRStorageMetadata *metadata = updatedMetadata;
659
659
metadata.cacheControl = nil ;
660
660
metadata.contentDisposition = nil ;
661
661
metadata.contentEncoding = nil ;
662
662
metadata.contentLanguage = nil ;
663
663
metadata.contentType = nil ;
664
- metadata.customMetadata = [ NSDictionary dictionary ] ;
664
+ metadata.customMetadata = nil ;
665
665
666
666
[ref updateMetadata: metadata
667
667
completion: ^(FIRStorageMetadata *updatedMetadata, NSError *error) {
668
668
XCTAssertNil (error);
669
669
[self assertMetadataNil: updatedMetadata];
670
+ XCTAssertNil (updatedMetadata.customMetadata );
670
671
[expectation fulfill ];
671
672
}];
672
673
}];
You can’t perform that action at this time.
0 commit comments