From 7eedac5552fc9ba8ac20995bf63e8c5791849dbd Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Sat, 8 Feb 2025 06:36:23 -0800 Subject: [PATCH] Fixed the broken tests due to deprecated NIO provider --- Tests/WebPushTests/WebPushManagerTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/WebPushTests/WebPushManagerTests.swift b/Tests/WebPushTests/WebPushManagerTests.swift index 7d20b63..95d18c5 100644 --- a/Tests/WebPushTests/WebPushManagerTests.swift +++ b/Tests/WebPushTests/WebPushManagerTests.swift @@ -14,6 +14,7 @@ import FoundationEssentials import Foundation #endif import Logging +import NIO import ServiceLifecycle import Testing @testable import WebPush @@ -48,7 +49,7 @@ struct WebPushManagerTests { } @Test func managerCanCreateThreadPool() async throws { - let manager = WebPushManager(vapidConfiguration: .makeTesting(), eventLoopGroupProvider: .createNew) + let manager = WebPushManager(vapidConfiguration: .makeTesting(), eventLoopGroupProvider: .shared(MultiThreadedEventLoopGroup.singleton)) await withThrowingTaskGroup(of: Void.self) { group in group.addTask { try await manager.run()