From c87670c17e23c382fdce0591de859f6292a16edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 28 Oct 2024 01:20:41 +0800 Subject: [PATCH] fix: test --- pkg/io/io_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/io/io_test.go b/pkg/io/io_test.go index ec885b81d3..0e45358956 100644 --- a/pkg/io/io_test.go +++ b/pkg/io/io_test.go @@ -59,7 +59,7 @@ func (s *IOTestSuite) TestCompress() { err = Write(src[1], "File 2", 0644) s.NoError(err) - err = Compress(src, "testdata/compress_test.zip", Zip) + err = Compress("testdata", src, "testdata/compress_test.zip") s.NoError(err) } @@ -70,10 +70,10 @@ func (s *IOTestSuite) TestUnCompress() { err = Write(src[1], "File 2", 0644) s.NoError(err) - err = Compress(src, "testdata/uncompress_test.zip", Zip) + err = Compress("testdata", src, "testdata/uncompress_test.zip") s.NoError(err) - err = UnCompress("testdata/uncompress_test.zip", "testdata/uncompressed", Zip) + err = UnCompress("testdata/uncompress_test.zip", "testdata/uncompressed") s.NoError(err) data, err := Read("testdata/uncompressed/uncompress_test1.txt")