Skip to content

Commit b4197ca

Browse files
committed
made test seed sharable const
1 parent 71e4094 commit b4197ca

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

cli/tests/data/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//Generate test seed
2+
pub const TEST_SEED: &str = "hospital museum valve antique skate museum \
3+
unfold vocal weird milk scale social vessel identify \
4+
crowd hospital control album rib bulb path oven civil tank";
5+
16
pub mod config_template_fillers {
27
pub mod zcashd {
38
pub fn basic(rpcport: &str, extra: &str) -> String {

cli/tests/integration_tests.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
mod data;
44
mod utils;
5+
use data::TEST_SEED;
56
use json::JsonValue;
67
use tokio::runtime::Runtime;
78
use utils::setup::{
@@ -486,12 +487,9 @@ fn ensure_taddrs_from_old_seeds_work() {
486487

487488
// The first taddr generated on commit 9e71a14eb424631372fd08503b1bd83ea763c7fb
488489
let transparent_address = "tmFLszfkjgim4zoUMAXpuohnFBAKy99rr2i";
489-
// Generated from the following seed
490-
let seed = "hospital museum valve antique skate museum \
491-
unfold vocal weird milk scale social vessel identify \
492-
crowd hospital control album rib bulb path oven civil tank";
490+
493491
let client_b =
494-
LightClient::create_with_seedorkey_wallet(seed.to_string(), &client_b_config, 0, false)
492+
LightClient::create_with_seedorkey_wallet(TEST_SEED.to_string(), &client_b_config, 0, false)
495493
.unwrap();
496494

497495
Runtime::new().unwrap().block_on(async {

0 commit comments

Comments
 (0)