@@ -8,10 +8,6 @@ import Testing
88
99@Suite ( . serialized) struct HTTPClientTests {
1010 @Test func getSwiftOrgGPGKeys( ) async throws {
11- guard case let pd = try await Swiftly . currentPlatform. detectPlatform ( SwiftlyTests . ctx, disableConfirmation: true , platform: nil ) , pd. name != PlatformDefinition . rhel9. name && pd. name != PlatformDefinition . ubuntu2004. name else {
12- return
13- }
14-
1511 let tmpFile = mktemp ( )
1612 try await create ( file: tmpFile, contents: nil )
1713
@@ -29,10 +25,6 @@ import Testing
2925 }
3026
3127 @Test func getSwiftToolchain( ) async throws {
32- guard case let pd = try await Swiftly . currentPlatform. detectPlatform ( SwiftlyTests . ctx, disableConfirmation: true , platform: nil ) , pd. name != PlatformDefinition . rhel9. name && pd. name != PlatformDefinition . ubuntu2004. name else {
33- return
34- }
35-
3628 let tmpFile = mktemp ( )
3729 try await create ( file: tmpFile, contents: nil )
3830 let tmpFileSignature = mktemp ( ext: " .sig " )
@@ -62,10 +54,6 @@ import Testing
6254 }
6355
6456 @Test func getSwiftlyRelease( ) async throws {
65- guard case let pd = try await Swiftly . currentPlatform. detectPlatform ( SwiftlyTests . ctx, disableConfirmation: true , platform: nil ) , pd. name != PlatformDefinition . rhel9. name && pd. name != PlatformDefinition . ubuntu2004. name else {
66- return
67- }
68-
6957 let tmpFile = mktemp ( )
7058 try await create ( file: tmpFile, contents: nil )
7159 let tmpFileSignature = mktemp ( ext: " .sig " )
@@ -95,10 +83,6 @@ import Testing
9583 }
9684
9785 @Test func getSwiftlyReleaseMetadataFromSwiftOrg( ) async throws {
98- guard case let pd = try await Swiftly . currentPlatform. detectPlatform ( SwiftlyTests . ctx, disableConfirmation: true , platform: nil ) , pd. name != PlatformDefinition . rhel9. name && pd. name != PlatformDefinition . ubuntu2004. name else {
99- return
100- }
101-
10286 let httpClient = SwiftlyHTTPClient ( httpRequestExecutor: HTTPRequestExecutorImpl ( ) )
10387 do {
10488 let currentRelease = try await httpClient. getCurrentSwiftlyRelease ( )
0 commit comments