Signed-off-by: Manuel Rüger <manuel@rueg.eu>
| ... | ... |
@@ -153,9 +153,9 @@ func TestCompressStreamBzip2Unsupported(t *testing.T) {
|
| 153 | 153 |
} |
| 154 | 154 |
defer dest.Close() |
| 155 | 155 |
|
| 156 |
- _, err = CompressStream(dest, Xz) |
|
| 156 |
+ _, err = CompressStream(dest, Bzip2) |
|
| 157 | 157 |
if err == nil {
|
| 158 |
- t.Fatalf("Should fail as xz is unsupported for compression format.")
|
|
| 158 |
+ t.Fatalf("Should fail as bzip2 is unsupported for compression format.")
|
|
| 159 | 159 |
} |
| 160 | 160 |
} |
| 161 | 161 |
|
| ... | ... |
@@ -198,14 +198,14 @@ func TestExtensionGzip(t *testing.T) {
|
| 198 | 198 |
compression := Gzip |
| 199 | 199 |
output := compression.Extension() |
| 200 | 200 |
if output != "tar.gz" {
|
| 201 |
- t.Fatalf("The extension of a bzip2 archive should be 'tar.gz'")
|
|
| 201 |
+ t.Fatalf("The extension of a gzip archive should be 'tar.gz'")
|
|
| 202 | 202 |
} |
| 203 | 203 |
} |
| 204 | 204 |
func TestExtensionXz(t *testing.T) {
|
| 205 | 205 |
compression := Xz |
| 206 | 206 |
output := compression.Extension() |
| 207 | 207 |
if output != "tar.xz" {
|
| 208 |
- t.Fatalf("The extension of a bzip2 archive should be 'tar.xz'")
|
|
| 208 |
+ t.Fatalf("The extension of a xz archive should be 'tar.xz'")
|
|
| 209 | 209 |
} |
| 210 | 210 |
} |
| 211 | 211 |
|