Skip to content

Commit

Permalink
Tests: Simplify SNTRuleTableTest (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox authored Dec 3, 2024
1 parent c6ab1b8 commit 59a19ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/santad/DataLayer/SNTRuleTableTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,8 @@ - (void)testCriticalBinariesProduceFullSigningInformation {
// This test ensures that we bump the constant on updates to the rule table
// schema.
- (void)testConstantVersionIsUpdated {
uint32_t expectedValue = 8;
uint32_t constantVersion = [self.sut currentSupportedVersion];
XCTAssertEqual(expectedValue, [self.sut currentVersion], @"currentSchemaVersion should be 8");
XCTAssertEqual(expectedValue, constantVersion, @"currentSupportedVersion should be 8");
XCTAssertEqual([self.sut currentSupportedVersion], [self.sut currentVersion],
@"initialized database should update to the maximum supported version");
}

@end

0 comments on commit 59a19ab

Please sign in to comment.