@@ -81,6 +81,7 @@ final class ServiceGroupTests: XCTestCase {
8181 }
8282 }
8383
84+ #if !os(Windows)
8485 func test_whenRun_ShutdownGracefully( ) async throws {
8586 let mockService = MockService ( description: " Service1 " )
8687 let serviceGroup = self . makeServiceGroup (
@@ -103,6 +104,7 @@ final class ServiceGroupTests: XCTestCase {
103104 await mockService. resumeRunContinuation ( with: . success( ( ) ) )
104105 }
105106 }
107+ #endif
106108
107109 func testRun_whenServiceExitsEarly( ) async throws {
108110 let mockService = MockService ( description: " Service1 " )
@@ -475,6 +477,7 @@ final class ServiceGroupTests: XCTestCase {
475477 }
476478 }
477479
480+ #if !os(Windows)
478481 func testCancellationSignal( ) async throws {
479482 let service1 = MockService ( description: " Service1 " )
480483 let service2 = MockService ( description: " Service2 " )
@@ -513,7 +516,9 @@ final class ServiceGroupTests: XCTestCase {
513516 await XCTAsyncAssertNoThrow ( try await group. next ( ) )
514517 }
515518 }
519+ #endif
516520
521+ #if !os(Windows)
517522 func testCancellationSignal_afterGracefulShutdownSignal( ) async throws {
518523 let service1 = MockService ( description: " Service1 " )
519524 let service2 = MockService ( description: " Service2 " )
@@ -566,7 +571,9 @@ final class ServiceGroupTests: XCTestCase {
566571 await XCTAsyncAssertNoThrow ( try await group. next ( ) )
567572 }
568573 }
574+ #endif
569575
576+ #if !os(Windows)
570577 func testGracefulShutdownOrdering( ) async throws {
571578 let service1 = MockService ( description: " Service1 " )
572579 let service2 = MockService ( description: " Service2 " )
@@ -630,7 +637,9 @@ final class ServiceGroupTests: XCTestCase {
630637 await service1. resumeRunContinuation ( with: . success( ( ) ) )
631638 }
632639 }
640+ #endif
633641
642+ #if !os(Windows)
634643 func testGracefulShutdownOrdering_whenServiceThrows( ) async throws {
635644 let service1 = MockService ( description: " Service1 " )
636645 let service2 = MockService ( description: " Service2 " )
@@ -694,7 +703,9 @@ final class ServiceGroupTests: XCTestCase {
694703 }
695704 }
696705 }
706+ #endif
697707
708+ #if !os(Windows)
698709 func testGracefulShutdownOrdering_whenServiceThrows_andServiceGracefullyShutsdown( ) async throws {
699710 let service1 = MockService ( description: " Service1 " )
700711 let service2 = MockService ( description: " Service2 " )
@@ -762,7 +773,9 @@ final class ServiceGroupTests: XCTestCase {
762773 }
763774 }
764775 }
776+ #endif
765777
778+ #if !os(Windows)
766779 func testGracefulShutdownOrdering_whenServiceExits( ) async throws {
767780 let service1 = MockService ( description: " Service1 " )
768781 let service2 = MockService ( description: " Service2 " )
@@ -822,7 +835,9 @@ final class ServiceGroupTests: XCTestCase {
822835 await service2. resumeRunContinuation ( with: . success( ( ) ) )
823836 }
824837 }
838+ #endif
825839
840+ #if !os(Windows)
826841 func testGracefulShutdownOrdering_whenServiceExits_andIgnoringThrows( ) async throws {
827842 let service1 = MockService ( description: " Service1 " )
828843 let service2 = MockService ( description: " Service2 " )
@@ -892,7 +907,9 @@ final class ServiceGroupTests: XCTestCase {
892907 }
893908 }
894909 }
910+ #endif
895911
912+ #if !os(Windows)
896913 func testNestedServiceLifecycle( ) async throws {
897914 struct NestedGroupService : Service {
898915 let group : ServiceGroup
@@ -1013,6 +1030,7 @@ final class ServiceGroupTests: XCTestCase {
10131030 await service2. resumeRunContinuation ( with: . success( ( ) ) )
10141031 }
10151032 }
1033+ #endif
10161034
10171035 func testGracefulShutdownEscalation( ) async throws {
10181036 let mockService = MockService ( description: " Service1 " )
0 commit comments