Skip to content

Commit

Permalink
Don't require .Delete on nonexistent keys to return an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
DisposaBoy committed Mar 22, 2020
1 parent bfe8ad7 commit e662479
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@ func (ts *Suite) testStorageSingleKey(t *testing.T) {
if sto.Exists(key) {
t.Fatalf("Deleted key still %s exists", key)
}

if err := sto.Delete(key); err == nil {
t.Fatalf("Delete(%s) should fail: the key was already deleted", key)
}
}

func (ts *Suite) testStorageDir(t *testing.T) {
Expand Down

0 comments on commit e662479

Please sign in to comment.