update nightly to 2019-05-01 (#4111)

* update nightly to 2019-05-01

* cargo fmt

* cargo fmt

* increase bench timeout
This commit is contained in:
Rob Walker
2019-05-01 20:08:42 -07:00
committed by GitHub
parent 1ab5098576
commit 7f75cc8906
6 changed files with 5 additions and 10 deletions

View File

@@ -1324,7 +1324,8 @@ mod tests {
// send a bogus instruction to system_program, cause an instruction error
tx.message.instructions[0].data[0] = 40;
bank.process_transaction(&tx).is_err(); // fails with an instruction error
bank.process_transaction(&tx)
.expect_err("instruction error"); // fails with an instruction error
assert_eq!(bank.get_balance(&leader), initial_balance + 5); // gots our bucks
assert_eq!(bank.get_balance(&key2.pubkey()), 1); // our fee ------V
assert_eq!(bank.get_balance(&mint_keypair.pubkey()), 100 - 5 - 3 - 1);