FactomProject / factomd

Factom Daemon
https://www.factomprotocol.org/
Other
201 stars 92 forks source link

[Nowax] Reset FNodes between unit tests #1108

Open WhoSoup opened 3 years ago

WhoSoup commented 3 years ago

The sim is set up to use engine.fnodes to store the simulated nodes but this is never reset between tests, meaning new tests just keep appending to the end of fnodes. This leads to errors like databases being closed (since the nodes are shut down).

Similarly, the "quit" channel that StartSim uses was never reopened after being closed from a previous test.

Both of these changes are experimental with possible unintentional consequences.