|
@@ -241,16 +241,16 @@ async fn test_concurrent_duplicate_payment_handling() {
|
|
|
"Exactly one task should successfully process the payment (got {})",
|
|
"Exactly one task should successfully process the payment (got {})",
|
|
|
success_count
|
|
success_count
|
|
|
);
|
|
);
|
|
|
- assert_eq!(
|
|
|
|
|
- duplicate_errors, 9,
|
|
|
|
|
- "Nine tasks should receive Duplicate error (got {})",
|
|
|
|
|
- duplicate_errors
|
|
|
|
|
- );
|
|
|
|
|
assert!(
|
|
assert!(
|
|
|
other_errors.is_empty(),
|
|
other_errors.is_empty(),
|
|
|
"No unexpected errors should occur. Got: {:?}",
|
|
"No unexpected errors should occur. Got: {:?}",
|
|
|
other_errors
|
|
other_errors
|
|
|
);
|
|
);
|
|
|
|
|
+ assert_eq!(
|
|
|
|
|
+ duplicate_errors, 9,
|
|
|
|
|
+ "Nine tasks should receive Duplicate error (got {})",
|
|
|
|
|
+ duplicate_errors
|
|
|
|
|
+ );
|
|
|
|
|
|
|
|
// Verify the quote was incremented exactly once
|
|
// Verify the quote was incremented exactly once
|
|
|
let final_quote = MintQuotesDatabase::get_mint_quote(&*database, &mint_quote.id)
|
|
let final_quote = MintQuotesDatabase::get_mint_quote(&*database, &mint_quote.id)
|