File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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
124124func 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 }
You can’t perform that action at this time.
0 commit comments