Skip to content

Commit 99bd0bc

Browse files
author
Edward Smith
committed
Fix tests.
1 parent b7429c2 commit 99bd0bc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Branch-SDK-Tests/Branch-SDK-Tests/BranchInstallRequestTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ - (void)testRequestBody {
9696
postRequest:[OCMArg checkWithBlock:^BOOL(id value) {
9797
if (![value isKindOfClass:[NSDictionary class]]) {
9898
XCTFail(@"Expected NSDictionary. Got '%@'.", NSStringFromClass([value class]));
99-
return NO;
99+
return YES;
100100
}
101101
NSDictionary *dictionary = (NSDictionary*)value;
102102
XCTAssertEqualObjects(dictionary, expectedParams);

scripts/test-unit-tests

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ fi
110110
testSimulatorVersion "iPhone SE" "$stressOS"
111111
testSimulatorVersion "iPhone 6s" 10.0
112112
testSimulatorVersion "iPhone 5" 9.3
113-
# xctest doesn't work for iOS 8.4 in Xcode 9.3. Bummer.
114-
if [ "$(xcodebuild -version | head -n1)" != "Xcode 9.3" ]
113+
# xctest doesn't work for iOS 8.4 in Xcode 9.3 and above. Bummer.
114+
xv=$(xcodebuild -version | head -n1)
115+
if [[ "$xv" == "Xcode 9.3" ]] || [[ "$xv" == "Xcode 9.4" ]]
115116
then
116117
testSimulatorVersion "iPhone 4s" 8.4
117118
fi

0 commit comments

Comments
 (0)