mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
pkg/stash: fix redis failing test
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user