diff options
Diffstat (limited to 'src/objective-c/examples/Sample/SampleTests')
-rw-r--r-- | src/objective-c/examples/Sample/SampleTests/RemoteTests.m | 2 | ||||
-rw-r--r-- | src/objective-c/examples/Sample/SampleTests/SampleTests.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/examples/Sample/SampleTests/RemoteTests.m b/src/objective-c/examples/Sample/SampleTests/RemoteTests.m index 553c813b0b..ceb72cfaec 100644 --- a/src/objective-c/examples/Sample/SampleTests/RemoteTests.m +++ b/src/objective-c/examples/Sample/SampleTests/RemoteTests.m @@ -125,7 +125,7 @@ XCTAssertNotNil(value, @"nil value received as response."); [response fulfill]; XCTAssertGreaterThan(value.length, 0, @"Empty response received."); - RMTSimpleResponse *response = [RMTSimpleResponse parseFromData:value]; + RMTSimpleResponse *response = [RMTSimpleResponse parseFromData:value error:NULL]; // We expect empty strings, not nil: XCTAssertNotNil(response.username, @"Response's username is nil."); XCTAssertNotNil(response.oauthScope, @"Response's OAuth scope is nil."); diff --git a/src/objective-c/examples/Sample/SampleTests/SampleTests.m b/src/objective-c/examples/Sample/SampleTests/SampleTests.m index b1a0f78a01..83cfd8c1b5 100644 --- a/src/objective-c/examples/Sample/SampleTests/SampleTests.m +++ b/src/objective-c/examples/Sample/SampleTests/SampleTests.m @@ -123,7 +123,7 @@ id<GRXWriteable> responsesWriteable = [[GRXWriteable alloc] initWithValueHandler:^(NSData *value) { XCTAssertNotNil(value, @"nil value received as response."); - RGDFeature *feature = [RGDFeature parseFromData:value]; + RGDFeature *feature = [RGDFeature parseFromData:value error:NULL]; XCTAssertEqualObjects(point, feature.location); XCTAssertNotNil(feature.name, @"Response's name is nil."); [response fulfill]; |