aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
authorGravatar Benoit St-Pierre <bstpierre@google.com>2018-02-26 14:40:00 -0500
committerGravatar Benoit St-Pierre <bstpierre@google.com>2018-02-26 14:40:00 -0500
commite281a2135b73982a3406cc32908c88ee2429fa2e (patch)
treeb1199b89a67794202c6f2c8725e6367cba32d354 /Example
parent6f5eebb77fcc2c130e80e8fe74101385dc993949 (diff)
Deflake tests
Diffstat (limited to 'Example')
-rw-r--r--Example/Core/Tests/FIRAppTest.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Example/Core/Tests/FIRAppTest.m b/Example/Core/Tests/FIRAppTest.m
index 28378d2..3784a6e 100644
--- a/Example/Core/Tests/FIRAppTest.m
+++ b/Example/Core/Tests/FIRAppTest.m
@@ -608,13 +608,13 @@ NSString *const kFIRTestAppName2 = @"test-app-name-2";
- (void)testSingleLibrary {
[FIRApp registerLibrary:@"LegalName" withVersion:@"1.0.0"];
- XCTAssertTrue([[FIRApp firebaseUserAgent] isEqualToString:@"LegalName/1.0.0"]);
+ XCTAssertTrue([[FIRApp firebaseUserAgent] containsString:@"LegalName/1.0.0"]);
}
- (void)testMultipleLibraries {
[FIRApp registerLibrary:@"LegalName" withVersion:@"1.0.0"];
[FIRApp registerLibrary:@"LegalName2" withVersion:@"2.0.0"];
- XCTAssertTrue([[FIRApp firebaseUserAgent] isEqualToString:@"LegalName/1.0.0 LegalName2/2.0.0"]);
+ XCTAssertTrue([[FIRApp firebaseUserAgent] containsString:@"LegalName/1.0.0 LegalName2/2.0.0"]);
}
#pragma mark - private