From 108bbd96cb6f9aaa2a761e1a33250f36d58882f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Tue, 3 Apr 2018 01:17:52 +0200 Subject: [PATCH] Fix tests for pkg/archive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel RĂ¼ger --- pkg/archive/archive_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/archive/archive_test.go b/pkg/archive/archive_test.go index e8d12dd72f..958e4efcb5 100644 --- a/pkg/archive/archive_test.go +++ b/pkg/archive/archive_test.go @@ -153,9 +153,9 @@ func TestCompressStreamBzip2Unsupported(t *testing.T) { } defer dest.Close() - _, err = CompressStream(dest, Xz) + _, err = CompressStream(dest, Bzip2) if err == nil { - t.Fatalf("Should fail as xz is unsupported for compression format.") + t.Fatalf("Should fail as bzip2 is unsupported for compression format.") } } @@ -198,14 +198,14 @@ func TestExtensionGzip(t *testing.T) { compression := Gzip output := compression.Extension() if output != "tar.gz" { - t.Fatalf("The extension of a bzip2 archive should be 'tar.gz'") + t.Fatalf("The extension of a gzip archive should be 'tar.gz'") } } func TestExtensionXz(t *testing.T) { compression := Xz output := compression.Extension() if output != "tar.xz" { - t.Fatalf("The extension of a bzip2 archive should be 'tar.xz'") + t.Fatalf("The extension of a xz archive should be 'tar.xz'") } }