Skip to content

Commit 0f7c12e

Browse files
committed
update comment
1 parent bd1101e commit 0f7c12e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/single_entity_write_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,9 @@ func TestDeleteLabelEntityNotFound(t *testing.T) {
770770

771771
func TestDeleteLabelError(t *testing.T) {
772772
// Test that DELETE /.../labels/:label works correctly when the diff returned
773-
// from the store returns an error. This can happen. The API
774-
// should handle it gracefully by returning an empty EntityId in the
775-
// write result.
773+
// from the store returns an error. This can happen for example when deleting
774+
// a required label. The API should handle it gracefully by returning an empty
775+
// EntityId in the write result.
776776
store := mock.EntityStore{
777777
DeleteLabelFunc: func(ctx context.Context, wo entity.WriteOp, label string) (etre.Entity, error) {
778778
// Simulate a diff without an _id.

0 commit comments

Comments
 (0)