Skip to content

Commit 88dc218

Browse files
committed
fix test case
1 parent af27120 commit 88dc218

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

storage/operation/children_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestIndexWithMultiChildrenRetrieve(t *testing.T) {
120120
}
121121
}
122122

123-
// Test indexing the same child with different parents should error
123+
// Test indexing the same child with different parents should not error
124124
func TestIndexAgainWithDifferentParentShouldError(t *testing.T) {
125125
for _, opPair := range getTestOperationPairs() {
126126
t.Run(opPair.name, func(t *testing.T) {
@@ -154,7 +154,8 @@ func TestIndexAgainWithDifferentParentShouldError(t *testing.T) {
154154
require.ElementsMatch(t, flow.IdentifierList{child}, retrievedIDs)
155155

156156
err = operation.RetrieveBlockChildren(db.Reader(), parent2, &retrievedIDs)
157-
require.ErrorIs(t, err, storage.ErrNotFound)
157+
require.NoError(t, err)
158+
require.ElementsMatch(t, flow.IdentifierList{child}, retrievedIDs)
158159
})
159160
})
160161
}

0 commit comments

Comments
 (0)