kvstore: ensure we return notFound on delete (#107288)

* kvstore: ensure we return notFound on delete

* fix tests
This commit is contained in:
Georges Chaudy
2025-06-27 12:00:03 +02:00
committed by GitHub
parent f1a22a8ea9
commit b2aaa9b3ce
3 changed files with 14 additions and 3 deletions
@@ -605,7 +605,8 @@ func TestDataStore_Delete(t *testing.T) {
}
err := ds.Delete(ctx, nonExistentKey)
require.NoError(t, err) // BadgerDB doesn't return error for non-existent keys
require.Error(t, err)
require.Equal(t, ErrNotFound, err)
})
}