From c5fb195ee33b8881c9e40b8b0f9ef753423c99d8 Mon Sep 17 00:00:00 2001 From: Meik Kreyenkoetter Date: Mon, 11 Jun 2018 15:57:19 +0200 Subject: [PATCH] Fixed test error. f.FileInfo().Name is a func value, not called --- crypto_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto_test.go b/crypto_test.go index cc5e2de..6e95af5 100644 --- a/crypto_test.go +++ b/crypto_test.go @@ -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()