Skip to content

Commit 61d86a7

Browse files
committed
Conditionally disable http client test on certain Linux platforms
1 parent f1d3572 commit 61d86a7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/SwiftlyTests/HTTPClientTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ 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 != PlatformDefinition.rhel9 && pd != PlatformDefinition.ubuntu2004 else {
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 {
1212
return
1313
}
1414

@@ -29,7 +29,7 @@ import Testing
2929
}
3030

3131
@Test func getSwiftToolchain() async throws {
32-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd != PlatformDefinition.rhel9 && pd != PlatformDefinition.ubuntu2004 else {
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 {
3333
return
3434
}
3535

@@ -62,7 +62,7 @@ import Testing
6262
}
6363

6464
@Test func getSwiftlyRelease() async throws {
65-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd != PlatformDefinition.rhel9 && pd != PlatformDefinition.ubuntu2004 else {
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 {
6666
return
6767
}
6868

@@ -95,7 +95,7 @@ import Testing
9595
}
9696

9797
@Test func getSwiftlyReleaseMetadataFromSwiftOrg() async throws {
98-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd != PlatformDefinition.rhel9 && pd != PlatformDefinition.ubuntu2004 else {
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 {
9999
return
100100
}
101101

0 commit comments

Comments
 (0)