-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
It looks like @rleungx signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
@@ -1388,11 +1388,11 @@ pub mod tests { | |||
let mut core = Core::new().unwrap(); | |||
let clusters = make_clusters(&core, 6028, 3); | |||
run_clusters(&clusters); | |||
loop_until(&mut core, time::Duration::from_millis(300), || clusters.iter().all(all_connections_established)); | |||
loop_until(&mut core, Duration::from_millis(300), || clusters.iter().all(all_connections_established)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps those Durations could be moved to constants as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any naming suggestion? Something like TIMEOUT
?
In my opinion the constants should be renamed as well, for example |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constants should be renamed as well to remove the unit.
Closes #8260.