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.
This commit is contained in:
Matt Corallo 2023-01-17 23:39:41 +00:00 committed by Wilmer Paulino
parent 98417a16df
commit f3a6ca4adc
No known key found for this signature in database
GPG key ID: 6DF57B9F9514972F
3 changed files with 3 additions and 1 deletions

View file

@ -18,7 +18,7 @@ libfuzzer_fuzz = ["libfuzzer-sys"]
stdin_fuzz = []
[dependencies]
lightning = { path = "../lightning", features = ["regex", "hashbrown"] }
lightning = { path = "../lightning", features = ["regex", "hashbrown", "_test_utils"] }
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }
bitcoin = { version = "0.29.0", features = ["secp-lowmemory"] }
hex = "0.3"

View file

@ -27,4 +27,5 @@ serde_json = { version = "1.0", optional = true }
chunked_transfer = { version = "1.4", optional = true }
[dev-dependencies]
lightning = { version = "0.0.113", path = "../lightning", features = ["_test_utils"] }
tokio = { version = "~1.14", features = [ "macros", "rt" ] }

View file

@ -21,3 +21,4 @@ tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net"
[dev-dependencies]
tokio = { version = "~1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
lightning = { version = "0.0.113", path = "../lightning", features = ["_test_utils"] }