Fiddle with timeouts to make CI happy

This commit is contained in:
Michael Vines
2019-02-14 17:55:47 -08:00
parent c4125b80ec
commit 71ab030ea4
2 changed files with 2 additions and 4 deletions

View File

@@ -332,11 +332,11 @@ impl ThinClient {
pub fn poll_for_signature(&mut self, signature: &Signature) -> io::Result<()> {
let now = Instant::now();
while !self.check_signature(signature) {
if now.elapsed().as_secs() > 4 {
if now.elapsed().as_secs() > 15 {
// TODO: Return a better error.
return Err(io::Error::new(io::ErrorKind::Other, "signature not found"));
}
sleep(Duration::from_millis(500));
sleep(Duration::from_millis(250));
}
Ok(())
}