mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix tests for pkg/archive
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
parent
785b3e3287
commit
108bbd96cb
1 changed files with 4 additions and 4 deletions
|
@ -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'")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue