From 75bca9133420ca172a25e819c14ad9a52a898827 Mon Sep 17 00:00:00 2001 From: Peter Fern Date: Sun, 2 Nov 2025 11:21:25 +1100 Subject: [PATCH] fix(tests): Fix bz2 tests --- hcloudimages/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcloudimages/client_test.go b/hcloudimages/client_test.go index 86f8961..1dfbdb7 100644 --- a/hcloudimages/client_test.go +++ b/hcloudimages/client_test.go @@ -59,9 +59,9 @@ func TestAssembleCommand(t *testing.T) { name: "remote bz2", options: UploadOptions{ ImageURL: mustParseURL("https://example.com/image.bz2"), - ImageCompression: CompressionXZ, + ImageCompression: CompressionBZ2, }, - want: "bash -c 'set -euo pipefail && wget --no-verbose -O - \"https://example.com/image.bz2\" | xz -cd | dd of=/dev/sda bs=4M && sync'", + want: "bash -c 'set -euo pipefail && wget --no-verbose -O - \"https://example.com/image.bz2\" | bzip2 -cd | dd of=/dev/sda bs=4M && sync'", }, { name: "local qcow2",