Merge pull request #5710 from thaJeztah/TestRunCopyFromContainerToFilesystem_simplify

TestRunCopyFromContainerToFilesystem: use Tar without options
This commit is contained in:
Paweł Gronowski 2024-12-23 12:30:37 +00:00 committed by GitHub
commit 1a9d19131d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ func TestRunCopyFromContainerToFilesystem(t *testing.T) {
cli := test.NewFakeCli(&fakeClient{ cli := test.NewFakeCli(&fakeClient{
containerCopyFromFunc: func(ctr, srcPath string) (io.ReadCloser, container.PathStat, error) { containerCopyFromFunc: func(ctr, srcPath string) (io.ReadCloser, container.PathStat, error) {
assert.Check(t, is.Equal("container", ctr)) 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 return readCloser, container.PathStat{}, err
}, },
}) })