Skip to content

Commit

Permalink
pkg/stash: fix redis failing test (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
marwan-at-work authored Jul 27, 2020
1 parent 408fd74 commit 46f1764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stash/with_redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down

0 comments on commit 46f1764

Please sign in to comment.