Skip to content

Commit 358d980

Browse files
committed
Always set _test_utils when building lightning for some tests
This ensures that we hit additional assertions which are intended to always be run in tests.
1 parent e1b58a8 commit 358d980

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

fuzz/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ libfuzzer_fuzz = ["libfuzzer-sys"]
1818
stdin_fuzz = []
1919

2020
[dependencies]
21-
lightning = { path = "../lightning", features = ["regex", "hashbrown"] }
21+
lightning = { path = "../lightning", features = ["regex", "hashbrown", "_test_utils"] }
2222
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
2323
bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] }
2424
hex = "0.3"

lightning-block-sync/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ serde_json = { version = "1.0", optional = true }
2727
chunked_transfer = { version = "1.4", optional = true }
2828

2929
[dev-dependencies]
30+
lightning = { version = "0.0.113", path = "../lightning", features = ["_test_utils"] }
3031
tokio = { version = "~1.14", features = [ "macros", "rt" ] }

lightning-net-tokio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net"
2121

2222
[dev-dependencies]
2323
tokio = { version = "~1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
24+
lightning = { version = "0.0.113", path = "../lightning", features = ["_test_utils"] }

0 commit comments

Comments
 (0)