Commit 91d96fe
committed
fix(test): remove
Fixes the resource leakage issue on the test suite caused
due to the `BITCOIND` and `ELECTRSD` statics not being `Drop`ped on exit.
This is done by registering a cleanup routine via `libc`'s `atexit`.
Once the process terminates, we take ownership of `BITCOIND` and
`ELECTRSD` and call `drop()` on them.lazy_static and call Drop on test exit1 parent e0f7985 commit 91d96fe
2 files changed
+143
-97
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
0 commit comments