Commit f115da2
committed
5748132 refactor(test): properly assert for HTTP headers (Leonardo Lima)
ed9d7ad feat(test): roll a custom `TestEnv` and drop `lazy_static` (Luis Schwab)
b6bb968 chore(ci): fix pinning for 1.75.0 MSRV (Luis Schwab)
Pull request description:
Closes #149
Implement a custom `TestEnv`, which is instantiated per-test and fixes the un-dropped `bitcoind` issue. This also allows running tests with more than 1 thread, since they no longer share `bitcoind` and `electrsd` instances.
Also adds helpers to fetch externally sourced addresses, fixing the issue where `bitcoind`'s wallet would send change outputs to it's own wallet address, which would mess with `test_get_scripthash_stats`.
The `test` recipe and CI job are updated to now use 16 threads.
ACKs for top commit:
oleonardolima:
ACK 5748132
Tree-SHA512: 5143abc8ef5835755aff6e234caac2214d1af6f20743af3f8eb2fbc0ab3a7a34b6b675a9a7850ab804bdd2f8b1e0673319cfe17063a60334fcca45e5de67c203
File tree
5 files changed
+433
-359
lines changed- .github/workflows
- ci
- src
5 files changed
+433
-359
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
0 commit comments