From d934f94e05635820a25e284a6ed278377e1c25c7 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Tue, 28 May 2019 09:25:53 -0600 Subject: [PATCH] Add commented correct future test lines --- runtime/src/bank.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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]