Skip to content

Commit 295f994

Browse files
Fixed the broken tests due to deprecated NIO provider
1 parent f1d4fd4 commit 295f994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/WebPushTests/WebPushManagerTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import FoundationEssentials
1414
import Foundation
1515
#endif
1616
import Logging
17+
import NIO
1718
import ServiceLifecycle
1819
import Testing
1920
@testable import WebPush
@@ -48,7 +49,7 @@ struct WebPushManagerTests {
4849
}
4950

5051
@Test func managerCanCreateThreadPool() async throws {
51-
let manager = WebPushManager(vapidConfiguration: .makeTesting(), eventLoopGroupProvider: .createNew)
52+
let manager = WebPushManager(vapidConfiguration: .makeTesting(), eventLoopGroupProvider: .shared(MultiThreadedEventLoopGroup.singleton))
5253
await withThrowingTaskGroup(of: Void.self) { group in
5354
group.addTask {
5455
try await manager.run()

0 commit comments

Comments
 (0)