Skip to content

Commit

Permalink
Disable KSCrashReportFilterAlert test
Browse files Browse the repository at this point in the history
  • Loading branch information
bamx23 committed May 6, 2024
1 parent 02aa46d commit 11bdc5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
BlueprintName = "KSCrashFiltersTests"
ReferencedContainer = "container:">
</BuildableReference>
<SkippedTests>
<Test
Identifier = "KSCrashReportFilterAlert_Tests">
</Test>
</SkippedTests>
</TestableReference>
<TestableReference
skipped = "NO">
Expand Down
4 changes: 4 additions & 0 deletions Tests/KSCrashFiltersTests/KSCrashReportFilterAlert_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ - (void) testAlert
yesAnswer:@"YES"
noAnswer:@"NO"];

XCTestExpectation *expectation = [self expectationWithDescription:@"Filter completion"];
[filter filterReports:[NSArray array] onCompletion:^(__unused NSArray* filteredReports,
BOOL completed,
NSError* error)
{
XCTAssertTrue(completed, @"");
XCTAssertNil(error, @"");
[expectation fulfill];
}];

[self waitForExpectations:@[expectation] timeout:0.2];
}

@end

0 comments on commit 11bdc5b

Please sign in to comment.