fix up step switching test
This commit is contained in:
parent
d84f94975f
commit
44c4845d84
@ -350,14 +350,9 @@ mod tests {
|
|||||||
// Too early.
|
// Too early.
|
||||||
assert!(engine.verify_block_seal(&header).is_err());
|
assert!(engine.verify_block_seal(&header).is_err());
|
||||||
|
|
||||||
sleep(Duration::from_millis(1000));
|
sleep(Duration::from_millis(2000));
|
||||||
|
|
||||||
// Right step.
|
// Right step.
|
||||||
assert!(engine.verify_block_seal(&header).is_ok());
|
assert!(engine.verify_block_seal(&header).is_ok());
|
||||||
|
|
||||||
sleep(Duration::from_millis(1000));
|
|
||||||
|
|
||||||
// Future step.
|
|
||||||
assert!(engine.verify_block_seal(&header).is_ok());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user