-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify tree.Hash / Skipped test TestProof #50
Comments
This is what I think the problem is: While The test passes again if: ===================================================================
--- basic_test.go (revision fd37a0fa3a7454423233bc3d5ea828f38e0af787)
+++ basic_test.go (date 1525356743000)
@@ -387,7 +387,7 @@
}
func TestProof(t *testing.T) {
- t.Skipf("This test has a race condition causing it to occasionally panic.")
+ //t.Skipf("This test has a race condition causing it to occasionally panic.")
// Construct some random tree
db := db.NewMemDB()
@@ -412,7 +412,7 @@
assert.NoError(t, err)
assert.Equal(t, value, value2)
if assert.NotNil(t, proof) {
- testProof(t, proof.(*KeyExistsProof), key, value, tree.Hash())
+ testProof(t, proof.(*KeyExistsProof), key, value, tree.orphaningTree.Hash())
}
return false
})
Looks like there should be 2 What should be the intended behaviour here? @jaekwon @ebuchman |
After discussing with @jlandrews, will open a PR with the above changes which will fix the test. |
iavl: skip TestIAVLTreeFdump since internal code is buggy
resolved in #92 |
Find out why
TestProof
fails (tree root never seems to match here).It's not clear why this is a race-condition. Either 1) fix test, 2) clarify why it is skipped, or 3) remove test (only if the test does not make sense).
https://github.com/tendermint/iavl/blob/35f66e53d9b01e83b30de68b931f54b2477a94c9/basic_test.go#L392-L422
The text was updated successfully, but these errors were encountered: