Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
Assert that exclusionFlag also exists
Browse files Browse the repository at this point in the history
NSNumber could be fed some non-value that it then coerces into a
boolean.
  • Loading branch information
friedbunny committed May 24, 2016
1 parent ef63089 commit 6becc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/darwin/test/MGLOfflineStorageTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ - (void)testBackupExclusion {
[cacheURL getResourceValue:&exclusionFlag
forKey:NSURLIsExcludedFromBackupKey
error:&error];
XCTAssertTrue([exclusionFlag boolValue], @"Backup exclusion flag should be set for cache database.");
XCTAssertTrue(exclusionFlag && [exclusionFlag boolValue], @"Backup exclusion flag should be set for cache database.");
XCTAssertNil(error, @"No errors should be returned when checking backup exclusion flag.");
}

Expand Down

0 comments on commit 6becc07

Please sign in to comment.