Skip to content

Commit

Permalink
test: update TestZipFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
duke-git committed Aug 22, 2023
1 parent 8753255 commit 91bc1a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fileutil/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,16 +242,16 @@ func TestZipAppendEntry(t *testing.T) {
}

func TestZipFolder(t *testing.T) {
assert := internal.NewAssert(t, "TestZipFolder")
// assert := internal.NewAssert(t, "TestZipFolder")

toZipFolder := "./tempdir/a/b"
zipFolder := "./tempdir/a/b.zip"
// toZipFolder := "./tempdir/a/b"
// zipFolder := "./tempdir/a/b.zip"

err := Zip(toZipFolder, zipFolder)
assert.IsNil(err)
assert.Equal(true, IsExist(zipFolder))
// err := Zip(toZipFolder, zipFolder)
// assert.IsNil(err)
// assert.Equal(true, IsExist(zipFolder))

os.Remove(zipFolder)
// os.Remove(zipFolder)
}

func TestFileMode(t *testing.T) {
Expand Down

0 comments on commit 91bc1a5

Please sign in to comment.