fix test
This commit is contained in:
@@ -2,14 +2,15 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"github.com/stretchr/testify/assert"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestExtractFromZip(t *testing.T) {
|
func TestExtractFromZip(t *testing.T) {
|
||||||
buf := bytes.NewBuffer(nil)
|
buf := bytes.NewBuffer(nil)
|
||||||
err := ExtractFromZip("testdata/test.zip", "**/foo.txt", buf)
|
err := ExtractFromZip("testdata/test.zip", "**/foo.txt", buf)
|
||||||
assert.NotNil(t, err)
|
assert.Nil(t, err)
|
||||||
t.Log("Content: " + buf.String())
|
t.Log("Content: " + buf.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user