Skip to content

Commit 1a9d191

Browse files
authored
Merge pull request #5710 from thaJeztah/TestRunCopyFromContainerToFilesystem_simplify
TestRunCopyFromContainerToFilesystem: use Tar without options
2 parents 7e73609 + a8f83d5 commit 1a9d191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/command/container/cp_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestRunCopyFromContainerToFilesystem(t *testing.T) {
7373
cli := test.NewFakeCli(&fakeClient{
7474
containerCopyFromFunc: func(ctr, srcPath string) (io.ReadCloser, container.PathStat, error) {
7575
assert.Check(t, is.Equal("container", ctr))
76-
readCloser, err := archive.TarWithOptions(destDir.Path(), &archive.TarOptions{})
76+
readCloser, err := archive.Tar(destDir.Path(), archive.Uncompressed)
7777
return readCloser, container.PathStat{}, err
7878
},
7979
})

0 commit comments

Comments
 (0)