From 46f176482f2c7cb7f7b9a4cfda1c9feada9b10c6 Mon Sep 17 00:00:00 2001 From: Marwan Sulaiman Date: Mon, 27 Jul 2020 12:17:08 -0400 Subject: [PATCH] pkg/stash: fix redis failing test (#1656) --- pkg/stash/with_redis_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stash/with_redis_test.go b/pkg/stash/with_redis_test.go index a8d066619..f9d0e2dae 100644 --- a/pkg/stash/with_redis_test.go +++ b/pkg/stash/with_redis_test.go @@ -102,8 +102,8 @@ func TestWithRedisLockWithWrongPassword(t *testing.T) { t.Fatal("Expected Connection Error") } - if err.Error() != "NOAUTH Authentication required." { - t.Fatalf("Wrong error was thrown %s\n", err.Error()) + if !strings.Contains(err.Error(), "NOAUTH Authentication required.") { + t.Fatalf("Wrong error was thrown %q\n", err.Error()) } }