Fixed test error.

f.FileInfo().Name is a func value, not called
This commit is contained in:
Meik Kreyenkoetter 2018-06-11 15:57:19 +02:00
parent a58f9a5124
commit c5fb195ee3
1 changed files with 1 additions and 1 deletions

View File

@ -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()