mirror of https://github.com/yeka/zip.git
Fixed test error.
f.FileInfo().Name is a func value, not called
This commit is contained in:
parent
a58f9a5124
commit
c5fb195ee3
|
@ -56,7 +56,7 @@ func TestPasswordHelloWorldAes(t *testing.T) {
|
|||
var b bytes.Buffer
|
||||
for _, f := range r.File {
|
||||
if !f.IsEncrypted() {
|
||||
t.Errorf("Expected %s to be encrypted.", f.FileInfo().Name)
|
||||
t.Errorf("Expected %s to be encrypted.", f.FileInfo().Name())
|
||||
}
|
||||
f.SetPassword("golang")
|
||||
rc, err := f.Open()
|
||||
|
|
Loading…
Reference in New Issue