From 1bbc10367278e98f737254066db59eda57f22c5f Mon Sep 17 00:00:00 2001 From: codeskyblue Date: Fri, 15 Feb 2019 17:41:35 +0800 Subject: [PATCH] fix test --- zip_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zip_test.go b/zip_test.go index 2caa876..9d5c0a8 100644 --- a/zip_test.go +++ b/zip_test.go @@ -2,18 +2,19 @@ package main import ( "bytes" - "github.com/stretchr/testify/assert" "testing" + + "github.com/stretchr/testify/assert" ) func TestExtractFromZip(t *testing.T) { buf := bytes.NewBuffer(nil) err := ExtractFromZip("testdata/test.zip", "**/foo.txt", buf) - assert.NotNil(t, err) + assert.Nil(t, err) t.Log("Content: " + buf.String()) } //func TestUnzipTo(t *testing.T){ // err := unzipFile("testdata.zip", "./tmp") // assert.Nil(t, err) -//} \ No newline at end of file +//}