Skip to content

Commit d3a42f2

Browse files
committed
rust/tests: remove unneeded random::fake_reset calls
1 parent 6f234ba commit d3a42f2

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/rust/bitbox02-rust/src/hww/api/bitcoin/signtx.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,6 @@ mod tests {
22322232

22332233
mock_host_responder(transaction.clone());
22342234
mock_unlocked();
2235-
bitbox02::random::fake_reset();
22362235
let result = block_on(process(
22372236
&mut TestingHal::new(),
22382237
&transaction.borrow().init_request(),
@@ -3227,7 +3226,6 @@ mod tests {
32273226
"sudden tenant fault inject concert weather maid people chunk youth stumble grit",
32283227
"",
32293228
);
3230-
bitbox02::random::fake_reset();
32313229
// For the policy registration below.
32323230
mock_memory();
32333231

@@ -3412,7 +3410,6 @@ mod tests {
34123410
"sudden tenant fault inject concert weather maid people chunk youth stumble grit",
34133411
"",
34143412
);
3415-
bitbox02::random::fake_reset();
34163413
// For the policy registration below.
34173414
mock_memory();
34183415

@@ -3710,7 +3707,6 @@ mod tests {
37103707

37113708
mock_host_responder(transaction.clone());
37123709
mock_unlocked();
3713-
bitbox02::random::fake_reset();
37143710
let init_request = transaction.borrow().init_request();
37153711

37163712
let mut mock_hal = TestingHal::new();
@@ -3789,7 +3785,6 @@ mod tests {
37893785

37903786
mock_host_responder(transaction.clone());
37913787
mock_unlocked();
3792-
bitbox02::random::fake_reset();
37933788
let init_request = transaction.borrow().init_request();
37943789

37953790
let mut mock_hal = TestingHal::new();
@@ -3829,7 +3824,6 @@ mod tests {
38293824

38303825
mock_host_responder(transaction.clone());
38313826
mock_unlocked();
3832-
bitbox02::random::fake_reset();
38333827
let init_request = transaction.borrow().init_request();
38343828

38353829
let mut mock_hal = TestingHal::new();
@@ -3861,7 +3855,6 @@ mod tests {
38613855

38623856
mock_host_responder(transaction.clone());
38633857
mock_unlocked();
3864-
bitbox02::random::fake_reset();
38653858
let init_request = transaction.borrow().init_request();
38663859

38673860
let mut mock_hal = TestingHal::new();

src/rust/bitbox02-rust/src/keystore.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,6 @@ mod tests {
12831283
};
12841284

12851285
// Test without tweak
1286-
bitbox02::random::fake_reset();
12871286

12881287
bitbox02::securechip::fake_event_counter_reset();
12891288
let sig = secp256k1_schnorr_sign(&keypath, &msg, None).unwrap();
@@ -1300,7 +1299,6 @@ mod tests {
13001299
);
13011300

13021301
// Test with tweak
1303-
bitbox02::random::fake_reset();
13041302
let tweak = secp256k1::Scalar::from_be_bytes(hex!(
13051303
"a39fb163dbd9b5e0840af3cc1ee41d5b31245c5dd8d6bdc3d026d09b8964997c"
13061304
))

0 commit comments

Comments
 (0)