]> git.bitcoin.ninja Git - rust-lightning/commit
Move test `bitcoind`/`electrsd` out of `OnceCell`
authorElias Rohrer <ero@tnull.de>
Mon, 27 Mar 2023 11:19:15 +0000 (13:19 +0200)
committerElias Rohrer <ero@tnull.de>
Tue, 28 Mar 2023 15:13:54 +0000 (17:13 +0200)
commitf75ad8021b5b46a1a7cb2b632bb9019a8d5f4eac
tree7a3224eddf801435dc1e3f58e49ca8c8f134fc0e
parent3c02e507d67f83469b6e533e551d1f08e3915343
Move test `bitcoind`/`electrsd` out of `OnceCell`

`OnceCell` doesn't call `drop`, which makes the spawned
`bitcoind`/`electrsd` instances linger around after our tests have
finished. To fix this, we move them out of `OnceCell` and let every test
that needs them spawn their own instances. This additional let us drop
the `OnceCell` dev dependency.
lightning-transaction-sync/Cargo.toml
lightning-transaction-sync/tests/integration_tests.rs