From a8f83d5d99d2965dad971cbb8ed893924b4cd393 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 23 Dec 2024 13:22:56 +0100 Subject: [PATCH] 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 --- cli/command/container/cp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, })