fix up step switching test

This commit is contained in:
keorn 2016-09-19 18:40:25 +02:00
parent d84f94975f
commit 44c4845d84

View File

@ -350,14 +350,9 @@ mod tests {
// Too early.
assert!(engine.verify_block_seal(&header).is_err());
sleep(Duration::from_millis(1000));
sleep(Duration::from_millis(2000));
// Right step.
assert!(engine.verify_block_seal(&header).is_ok());
sleep(Duration::from_millis(1000));
// Future step.
assert!(engine.verify_block_seal(&header).is_ok());
}
}