Skip to content

Commit

Permalink
fix non deterministic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed Mar 8, 2024
1 parent e195287 commit 8710435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ func TestLegacyReferenceNode(t *testing.T) {
_, err = newTree.LoadVersion(version - 1)
require.NoError(t, err)
// Check if the reference node is refactored
legacyLatestVersion, err := newTree.ndb.getLegacyLatestVersion()
require.NoError(t, err)
require.Equal(t, newTree.root.nodeKey.nonce, uint32(0))
require.Equal(t, newTree.root.nodeKey.version, int64(legacyVersion))
require.Equal(t, newTree.root.nodeKey.version, int64(legacyLatestVersion))

Check failure on line 130 in migrate_test.go

View workflow job for this annotation

GitHub Actions / golangci-lint

unnecessary conversion (unconvert)
}

func TestDeleteVersions(t *testing.T) {
Expand Down

0 comments on commit 8710435

Please sign in to comment.