Skip to content

Commit be180f9

Browse files
author
Alexey Naumov
committed
fix: Skip one test when running on a simulator
1 parent 7b30c3e commit be180f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

UnitTests/System/AppDelegateTests.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ final class AppDelegateTests: XCTestCase {
4141
eventsHandler.verify()
4242
}
4343

44-
func test_systemEventsHandler() {
44+
func test_systemEventsHandler() throws {
45+
#if targetEnvironment(simulator)
46+
throw XCTSkip()
47+
#else
4548
let sut = AppDelegate()
4649
let handler = sut.systemEventsHandler
4750
XCTAssertTrue(handler is RealSystemEventsHandler)
51+
#endif
4852
}
4953
}

0 commit comments

Comments
 (0)