-
Notifications
You must be signed in to change notification settings - Fork 26
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
functional_daemon_test does not pass on first test run on local setup #56
Comments
I did more debugging and functional_daemon_test always pass on v0.17.3.2 but almost always does not pass on master. |
Cool, on v0.17.3, it returns: {
"id": "0",
"jsonrpc": "2.0",
"result": "0000000000000000000000000000000000000000000000000000000000000000"
} On master: {
"error": {
"code": -2,
"message": "Requested block height: 1 greater than current top block height: 0"
},
"id": "0",
"jsonrpc": "2.0"
} Edit: looking at the code, it ends up to a call to They are the same, so probably it was a change to lmdb's internals? |
Ok, I saw what is going on. The last commit on master ( Those changes are related to monero-project/monero#7936, monero-project/monero#7937, and monero-project/monero#8384 |
Closing now that the debug is over :) |
functional_daemon_test
, defined insidetests/rpc.rs
does not pass when runningcargo test
the first time WHEN there are no blocks in the regtest network, but it works if there is.Also, the test pass for the test workflow in the repository, probably because the tests run concurrently and the wallet test creates blocks before the daemon test runs.
As a solution, a block can first be created. Or, if the intention is to test a possible failure, then just test the
Error
returned.This issue is related to #48
Error returned by
cargo test --tests rpc
:Line that causes the error is line 27 https://github.com/monero-ecosystem/monero-rpc-rs/blob/master/tests/rpc.rs#L27
The text was updated successfully, but these errors were encountered: