Closed offerm closed 6 years ago
Seeing this too intermittently, definitely something that would be nice to get rid of. I'm looking up the error.
I've figured out the issue, I'll open a PR to fix.
The problem is two fold:
initDb
to true, which is unnecessaryshutdown
method which closes the db before the connections complete. When the connections complete, they try to update the nodes
table after the db has been closed.👍
On Tue, 25 Sep 2018 at 8:51 Daniel McNally notifications@github.com wrote:
I've figured out the issue, I'll open a PR to fix.
The problem is two fold:
- The web proxy test is defaulting initDb to true, which is unnecessary
- Part of the init db process adds the seed nodes to the database, which in turn creates outgoing connections to the the seed nodes. The connections are async, and frequently what happens is that the web proxy tests complete and call the shutdown method which closes the db before the connections complete. When the connections complete, they try to update the nodes table after the db has been closed.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ExchangeUnion/xud/issues/516#issuecomment-424215680, or mute the thread https://github.com/notifications/unsubscribe-auth/AJQ0cnnu0gSs8cyFIRZEDCPIfoeh-Sscks5uecR3gaJpZM4W1VSA .
when running the tests there is an ugly error which has no impact in the test run.