Skip to content

Commit

Permalink
Fix testThresholds test which was incorrectly failing. The threshold …
Browse files Browse the repository at this point in the history
…should not be nil on startDate, it should be equal to the original threshold on startDate.
  • Loading branch information
UberJason committed Dec 23, 2017
1 parent a237287 commit 310cc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CareKitTests/CareKitCarePlanTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ - (void)testThresholds {

[store evaluateAdheranceThresholdForActivity:activity date:startDate completion:^(BOOL success, OCKCarePlanThreshold * _Nullable cdThreshold, NSError * _Nullable error) {
XCTAssertNil(error);
XCTAssertNil(cdThreshold);
XCTAssertEqualObjects(threshold, cdThreshold);
}];

[store evaluateAdheranceThresholdForActivity:activity date:[startDate dateCompByAddingDays:1] completion:^(BOOL success, OCKCarePlanThreshold * _Nullable cdThreshold, NSError * _Nullable error) {
Expand Down

0 comments on commit 310cc63

Please sign in to comment.