Skip to content

Commit 472bdf1

Browse files
committed
Conditionally disable http client test on certain Linux platforms
1 parent ca6df80 commit 472bdf1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/SwiftlyTests/HTTPClientTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import SystemPackage
77
import Testing
88

99
@Suite(.serialized) struct HTTPClientTests {
10-
/*@Test func getSwiftOrgGPGKeys() async throws {
10+
@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 {
12+
return
13+
}
14+
1115
let tmpFile = mktemp()
1216
try await create(file: tmpFile, contents: nil)
1317

@@ -118,7 +122,7 @@ import Testing
118122
// THEN: we get at least 3 releases
119123
#expect(3 <= snapshots.count)
120124
}
121-
}*/
125+
}
122126
}
123127

124128
private func withGpg(_ body: (([String]) throws -> Void) async throws -> Void) async throws {

0 commit comments

Comments
 (0)