Skip to content

Commit 25d521a

Browse files
committed
Merge remote-tracking branch 'origin/master' into TransactionOptions
2 parents 141fdcb + a71dbaf commit 25d521a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

FirebaseFunctions/Tests/ObjCIntegration/FIRIntegrationTests.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ - (void)testHttpError {
255255
completion:^(FIRHTTPSCallableResult *_Nullable result, NSError *_Nullable error) {
256256
XCTAssertNotNil(error);
257257
XCTAssertEqual(FIRFunctionsErrorCodeInvalidArgument, error.code);
258+
XCTAssertEqualObjects(error.localizedDescription, @"INVALID ARGUMENT");
258259
[expectation fulfill];
259260
}];
260261
[self waitForExpectations:@[ expectation ] timeout:10];

FirebaseStorageInternal/Tests/Integration/FIRStorageIntegrationTests.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -631,26 +631,28 @@ - (void)testUpdateMetadata {
631631
metadata.contentEncoding = @"gzip";
632632
metadata.contentLanguage = @"de";
633633
metadata.contentType = @"content-type-a";
634-
metadata.customMetadata = @{@"a" : @"b"};
634+
metadata.customMetadata = @{@"a" : @"b", @"y" : @"z"};
635635

636636
[ref updateMetadata:metadata
637637
completion:^(FIRStorageMetadata *updatedMetadata, NSError *error) {
638638
XCTAssertNil(error);
639639
[self assertMetadata:updatedMetadata
640640
contentType:@"content-type-a"
641-
customMetadata:@{@"a" : @"b"}];
641+
customMetadata:@{@"a" : @"b", @"y" : @"z"}];
642642

643643
// Update a subset of the metadata using the existing object.
644644
FIRStorageMetadata *metadata = updatedMetadata;
645645
metadata.contentType = @"content-type-b";
646-
metadata.customMetadata = @{@"a" : @"b", @"c" : @"d"};
646+
metadata.customMetadata = @{@"c" : @"d", @"y" : @""};
647647

648648
[ref updateMetadata:metadata
649649
completion:^(FIRStorageMetadata *updatedMetadata, NSError *error) {
650650
XCTAssertNil(error);
651651
[self assertMetadata:updatedMetadata
652652
contentType:@"content-type-b"
653-
customMetadata:@{@"a" : @"b", @"c" : @"d"}];
653+
654+
// "a" is now deleted and the empty string for "y" remains.
655+
customMetadata:@{@"c" : @"d", @"y" : @""}];
654656

655657
// Clear all metadata.
656658
FIRStorageMetadata *metadata = updatedMetadata;

0 commit comments

Comments
 (0)