From f53a24630c6e151fe6725fc48e1030458fa52729 Mon Sep 17 00:00:00 2001 From: "Y.Horie" Date: Thu, 26 Sep 2019 11:39:21 +0900 Subject: [PATCH] fix test error message #6 --- cryptkeeper_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptkeeper_test.go b/cryptkeeper_test.go index b63acd6..036c136 100644 --- a/cryptkeeper_test.go +++ b/cryptkeeper_test.go @@ -31,13 +31,13 @@ func TestCryptString(t *testing.T) { t.Run("Invalid Encrypt", func(t *testing.T) { _, err := Encrypt("abc") if err == nil { - t.Fatalf("Encrypt without SetCryptKey should have errored: '%s'", err) + t.Fatalf("Encrypt without SetCryptKey should have errored") } }) t.Run("Invalid Decrypt", func(t *testing.T) { _, err := Decrypt("2tHq4GL8r7tTvfk6l2TS8d5nVDXY6ztqz6WTmbmq8ZOJ") if err == nil { - t.Fatalf("Decrypt without SetCryptKey should have errored: %s", err) + t.Fatalf("Decrypt without SetCryptKey should have errored") } }) })