Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 27, 2024
1 parent 0313e46 commit c87670c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/io/io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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")
Expand Down

0 comments on commit c87670c

Please sign in to comment.