diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 37c50d80f6..0f1a963f5d 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1366,9 +1366,15 @@ mod tests { // If multiple transactions attempt to deposit into the same account, only the first will // succeed, even though such atomic adds are safe. A System Transfer `To` account should be // given credit-only handling + assert_eq!(results[0], Ok(())); assert_eq!(results[1], Err(TransactionError::AccountInUse)); assert_eq!(results[2], Err(TransactionError::AccountInUse)); + + // After credit-only account handling is implemented, the following checks should pass instead: + // assert_eq!(results[0], Ok(())); + // assert_eq!(results[1], Ok(())); + // assert_eq!(results[2], Ok(())); } #[test]