Skip to content

Commit

Permalink
Check "keynotexists" error instead of "keynotfound" error
Browse files Browse the repository at this point in the history
  • Loading branch information
makernaren committed Oct 24, 2015
1 parent 6a88a15 commit 0ec591e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ func TestSTRLENWithoutKey(t *testing.T) {
db := setUp()
key := "mykey"
got, err := db.STRLEN(key)
if err.Error() != "keynotfound" {
t.Errorf("STRLEN(%q) == %v,%v want 0,keynotfound", key, got, err)
if err.Error() != "keynotexists" {
t.Errorf("STRLEN(%q) == %v,%v want 0,keynotexists", key, got, err)
}
}

Expand Down

0 comments on commit 0ec591e

Please sign in to comment.