Skip to content

Commit 494e241

Browse files
committed
fixed test: test_staking_account_creation
1 parent 75d3e9e commit 494e241

File tree

1 file changed

+3
-1
lines changed
  • crates/ethcore/src/engines/hbbft/test

1 file changed

+3
-1
lines changed

crates/ethcore/src/engines/hbbft/test/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ fn test_staking_account_creation() {
9898
.client
9999
.block(BlockId::Number(3))
100100
.expect("Block must exist");
101-
assert_eq!(block.transactions_count(), 1);
101+
102+
// block could already include KeyGenTransaction.
103+
assert!(block.transactions_count() >= 1);
102104

103105
assert_ne!(
104106
mining_by_staking_address(moc.client.as_ref(), &staker_1.address())

0 commit comments

Comments
 (0)