fix ctr image export not found error

Signed-off-by: Jie Zhang <iamkadisi@163.com>
This commit is contained in:
kadisi
2018-09-08 18:43:23 +08:00
committed by Jie Zhang
parent 1a9b010de0
commit 40267382c5
5 changed files with 64 additions and 27 deletions

View File

@@ -21,8 +21,6 @@ import (
"io"
"runtime"
"testing"
"github.com/containerd/containerd/images/oci"
)
// TestOCIExport exports testImage as a tar stream
@@ -44,7 +42,7 @@ func TestOCIExport(t *testing.T) {
if err != nil {
t.Fatal(err)
}
exportedStream, err := client.Export(ctx, &oci.V1Exporter{}, pulled.Target)
exportedStream, err := client.Export(ctx, pulled.Target)
if err != nil {
t.Fatal(err)
}