Skip to content

Commit 797c287

Browse files
committed
Fix test failure with Debian 12
1 parent e82393c commit 797c287

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftlyCore/HTTPClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ extension Components.Schemas.Platform {
201201
case "Ubuntu 24.04":
202202
PlatformDefinition(name: "ubuntu2404", nameFull: "ubuntu24.04", namePretty: "Ubuntu 24.04")
203203
case "Debian 12":
204-
PlatformDefinition(name: "debian12", nameFull: "debian12", namePretty: "Debian 12")
204+
PlatformDefinition(name: "debian12", nameFull: "debian12", namePretty: "Debian GNU/Linux 12")
205205
case "Fedora 39":
206206
PlatformDefinition(name: "fedora39", nameFull: "fedora39", namePretty: "Fedora 39")
207207
default:

Tests/SwiftlyTests/SwiftlyTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public class MockToolchainDownloader: HTTPRequestExecutor {
542542
"Red Hat Universal Base Image 9"
543543
case PlatformDefinition(name: "ubuntu2404", nameFull: "ubuntu24.04", namePretty: "Ubuntu 24.04"):
544544
"Ubuntu 24.04"
545-
case PlatformDefinition(name: "debian12", nameFull: "debian12", namePretty: "Debian 12"):
545+
case PlatformDefinition(name: "debian12", nameFull: "debian12", namePretty: "Debian GNU/Linux 12"):
546546
"Debian 12"
547547
case PlatformDefinition(name: "fedora39", nameFull: "fedora39", namePretty: "Fedora 39"):
548548
"Fedora 39"
@@ -553,7 +553,7 @@ public class MockToolchainDownloader: HTTPRequestExecutor {
553553
}
554554

555555
guard let platformName else {
556-
throw SwiftlyTestError(message: "Could not detect the current platform in test")
556+
throw SwiftlyTestError(message: "Could not detect the current platform in test: \(currentPlatform)")
557557
}
558558

559559
return self.releaseToolchains.map { releaseToolchain in

0 commit comments

Comments
 (0)