| 1 |
--- a/image/manifest_test.go |
| 2 |
+++ b/image/manifest_test.go |
| 3 |
@@ -29,8 +29,6 @@ |
| 4 |
"github.com/opencontainers/image-spec/specs-go/v1" |
| 5 |
"github.com/pkg/errors" |
| 6 |
"github.com/sirupsen/logrus" |
| 7 |
- |
| 8 |
- bz2 "github.com/dsnet/compress/bzip2" |
| 9 |
) |
| 10 |
|
| 11 |
func init() { |
| 12 |
@@ -96,11 +94,6 @@ |
| 13 |
switch compression { |
| 14 |
case "gzip": |
| 15 |
writer = gzip.NewWriter(f) |
| 16 |
- case "bzip2": |
| 17 |
- writer, err = bz2.NewWriter(f, nil) |
| 18 |
- if err != nil { |
| 19 |
- t.Fatal(errors.Wrap(err, "compiling bzip compressor")) |
| 20 |
- } |
| 21 |
} |
| 22 |
} else if invalid && compression == "" { |
| 23 |
writer = gzip.NewWriter(f) |
| 24 |
@@ -165,8 +158,6 @@ |
| 25 |
testUnpackLayer(t, "gzip", false) |
| 26 |
testUnpackLayer(t, "", true) |
| 27 |
testUnpackLayer(t, "", false) |
| 28 |
- testUnpackLayer(t, "bzip2", true) |
| 29 |
- testUnpackLayer(t, "bzip2", false) |
| 30 |
} |
| 31 |
|
| 32 |
func TestUnpackLayerRemovePartiallyUnpackedFile(t *testing.T) { |