Skip to content

Commit f60637b

Browse files
committed
Multi-case tests now have a single "#[serial]" after the last case, which makes rstest apply it to all cases.
1 parent ddb5e59 commit f60637b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

wallet/src/signer/trezor_signer/tests.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,10 @@ async fn test_sign_transaction_intent(#[case] seed: Seed) {
110110
}
111111

112112
#[rstest]
113-
#[serial]
114113
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V0)]
115-
#[serial]
116114
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V1)]
117115
#[trace]
116+
#[serial]
118117
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
119118
async fn test_sign_transaction(
120119
#[case] seed: Seed,
@@ -154,11 +153,10 @@ async fn test_fixed_signatures(#[case] seed: Seed) {
154153
}
155154

156155
#[rstest]
157-
#[serial]
158156
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V0)]
159-
#[serial]
160157
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V1)]
161158
#[trace]
159+
#[serial]
162160
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
163161
async fn test_fixed_signatures2(
164162
#[case] seed: Seed,
@@ -191,11 +189,10 @@ async fn test_fixed_signatures_no_legacy(#[case] seed: Seed) {
191189
}
192190

193191
#[rstest]
194-
#[serial]
195192
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V0)]
196-
#[serial]
197193
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V1)]
198194
#[trace]
195+
#[serial]
199196
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
200197
async fn test_fixed_signatures_htlc_refunding(
201198
#[case] seed: Seed,
@@ -259,11 +256,10 @@ async fn test_sign_transaction_intent_sig_consistency(#[case] seed: Seed) {
259256
}
260257

261258
#[rstest]
262-
#[serial]
263259
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V0)]
264-
#[serial]
265260
#[case(Seed::from_entropy(), SighashInputCommitmentVersion::V1)]
266261
#[trace]
262+
#[serial]
267263
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
268264
async fn test_sign_transaction_sig_consistency(
269265
#[case] seed: Seed,

0 commit comments

Comments
 (0)