Skip to content

Commit a8f83d5

Browse files
committed
TestRunCopyFromContainerToFilesystem: use Tar without options
Just a minor cleanup; use archive.Tar as we're not using other options here. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 7e73609 commit a8f83d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/command/container/cp_test.go

Lines changed: 1 addition & 1 deletion
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)