Skip to content

Commit d278191

Browse files
committed
fix tests
1 parent 88dc218 commit d278191

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/store/headers_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ func TestHeadersByParentIDChainStructure(t *testing.T) {
204204
}
205205

206206
// Test that parent only returns direct children (child1)
207-
children, err := headers.ByParentID(parentBlock.ID())
207+
children, err := headers.ByParentID(parent.ID())
208208
require.NoError(t, err)
209209
require.Len(t, children, 1)
210-
require.Equal(t, child1.ToHeader(), children[0])
210+
require.Equal(t, child.ToHeader(), children[0])
211211

212212
// Test that child1 returns its direct children (grandchild1, grandchild2)
213213
// Test that child returns its direct children (grandchild1, grandchild2)

0 commit comments

Comments
 (0)