pkg/stash: fix redis failing test

This commit is contained in:
Marwan Sulaiman
2020-07-27 10:10:52 -04:00
parent 408fd74a9c
commit 28c38adc86
+2 -2
View File
@@ -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())
}
}