diff --git a/cli/command/container/cp_test.go b/cli/command/container/cp_test.go index 113562e425b7..1730f3863479 100644 --- a/cli/command/container/cp_test.go +++ b/cli/command/container/cp_test.go @@ -73,7 +73,7 @@ func TestRunCopyFromContainerToFilesystem(t *testing.T) { cli := test.NewFakeCli(&fakeClient{ containerCopyFromFunc: func(ctr, srcPath string) (io.ReadCloser, container.PathStat, error) { assert.Check(t, is.Equal("container", ctr)) - readCloser, err := archive.TarWithOptions(destDir.Path(), &archive.TarOptions{}) + readCloser, err := archive.Tar(destDir.Path(), archive.Uncompressed) return readCloser, container.PathStat{}, err }, })