Skip to content

Commit 8e7c335

Browse files
committed
Update bitcoin_mining.rs
1 parent e131151 commit 8e7c335

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testnet/stacks-node/src/tests/signer/commands/bitcoin_mining.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use std::sync::Arc;
22

33
use madhouse::{Command, CommandWrapper};
4-
use proptest::prelude::Strategy;
4+
use proptest::strategy::{Just, Strategy};
5+
use proptest::prop_oneof;
56
use tracing::info;
67

78
use super::context::{SignerTestContext, SignerTestState};
@@ -58,7 +59,6 @@ impl Command<SignerTestState, SignerTestContext> for MinerMineBtcBlocks {
5859
fn build(
5960
ctx: Arc<SignerTestContext>,
6061
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
61-
use proptest::prelude::*;
6262
prop_oneof![
6363
Just(CommandWrapper::new(MinerMineBtcBlocks::one(ctx.clone()))),
6464
(2u64..5u64).prop_map({
@@ -121,7 +121,6 @@ impl Command<SignerTestState, SignerTestContext> for ChainGenerateBtcBlocks {
121121
fn build(
122122
ctx: Arc<SignerTestContext>,
123123
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
124-
use proptest::prelude::*;
125124
prop_oneof![
126125
Just(CommandWrapper::new(ChainGenerateBtcBlocks::one(
127126
ctx.clone()
@@ -133,4 +132,4 @@ impl Command<SignerTestState, SignerTestContext> for ChainGenerateBtcBlocks {
133132
})
134133
]
135134
}
136-
}
135+
}

0 commit comments

Comments
 (0)