Skip to content

Commit 3f253ea

Browse files
committed
Update tests
1 parent e85008e commit 3f253ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Shared/TestHelper.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ import AppKit
99
struct TestHelper {
1010
static func data(_ length : Int) -> Data {
1111
let buffer = [UInt8](repeating: 0, count: length)
12-
return Data(bytes: buffer)
12+
return Data(buffer)
1313
}
1414

1515
static func triggerApplicationEvents() {
1616
#if (iOS)
1717
NotificationCenter.default.post(name: UIApplication.didEnterBackgroundNotification, object: nil)
1818
NotificationCenter.default.post(name: UIApplication.willTerminateNotification, object: nil)
1919
#elseif os(tvOS)
20-
NotificationCenter.default.post(name: Notification.Name.UIApplicationDidEnterBackground, object: nil)
21-
NotificationCenter.default.post(name: Notification.Name.UIApplicationWillTerminate, object: nil)
20+
NotificationCenter.default.post(name: UIApplication.didEnterBackgroundNotification, object: nil)
21+
NotificationCenter.default.post(name: UIApplication.willTerminateNotification, object: nil)
2222
#else
23-
NotificationCenter.default.post(name: NSApplication.willTerminateNotification, object: nil)
24-
NotificationCenter.default.post(name: NSApplication.didResignActiveNotification, object: nil)
23+
NotificationCenter.default.post(name: NSApplication.willTerminateNotification, object: nil)
24+
NotificationCenter.default.post(name: NSApplication.didResignActiveNotification, object: nil)
2525
#endif
2626
}
2727
}

0 commit comments

Comments
 (0)