Skip to content

Commit

Permalink
small tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean committed Oct 3, 2023
1 parent 8cad9ce commit eea3a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trie/branchNode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ func TestBranchNode_VerifyChildrenVersionIsSetCorrectlyAfterInsertAndDelete(t *t
}
newBn, _, err := bn.insert(data, &testscommon.MemDbMock{})
assert.Nil(t, err)
assert.Equal(t, 0, len(newBn.(*branchNode).ChildrenVersion))
assert.Equal(t, []byte(nil), newBn.(*branchNode).ChildrenVersion)
})

t.Run("remove migrated child", func(t *testing.T) {
Expand All @@ -1449,7 +1449,7 @@ func TestBranchNode_VerifyChildrenVersionIsSetCorrectlyAfterInsertAndDelete(t *t

_, newBn, _, err := bn.delete(childKey, &testscommon.MemDbMock{})
assert.Nil(t, err)
assert.Equal(t, 0, len(newBn.(*branchNode).ChildrenVersion))
assert.Equal(t, []byte(nil), newBn.(*branchNode).ChildrenVersion)
})
}

Expand Down Expand Up @@ -1489,6 +1489,6 @@ func TestBranchNode_revertChildrenVersionSliceIfNeeded(t *testing.T) {
}

bn.revertChildrenVersionSliceIfNeeded()
assert.Equal(t, 0, len(bn.ChildrenVersion))
assert.Equal(t, []byte(nil), bn.ChildrenVersion)
})
}

0 comments on commit eea3a5c

Please sign in to comment.