Skip to content

Commit

Permalink
TestRunCopyFromContainerToFilesystem: use Tar without options
Browse files Browse the repository at this point in the history
Just a minor cleanup; use archive.Tar as we're not using other
options here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Dec 23, 2024
1 parent 7e73609 commit a8f83d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/command/container/cp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
})
Expand Down

0 comments on commit a8f83d5

Please sign in to comment.