Skip to content

Commit 937f5af

Browse files
committed
Tweak tests slightly
1 parent 109e2fc commit 937f5af

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Tests/SwiftyTimerTests/main.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@ class AppDelegate: NSObject, NSApplicationDelegate {
6262
fired = true
6363
}
6464
}
65-
timer4.start(runLoop: NSRunLoop.currentRunLoop(), modes: NSDefaultRunLoopMode)
65+
timer4.start()
6666
}
67-
67+
6868
func test6() {
69+
let timer = NSTimer.new(after: 0.1.seconds) {
70+
self.test7()
71+
}
72+
73+
timer.start(modes: NSDefaultRunLoopMode, NSEventTrackingRunLoopMode, runLoop: NSRunLoop.currentRunLoop())
74+
}
75+
76+
func test7() {
6977
NSTimer.after(0.1.seconds, done)
7078
}
7179

0 commit comments

Comments
 (0)