From 71ab030ea4d4e765dd43607a41faaf2cd854f9c6 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 14 Feb 2019 17:55:47 -0800 Subject: [PATCH] Fiddle with timeouts to make CI happy --- src/thin_client.rs | 4 ++-- tests/multinode.rs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/thin_client.rs b/src/thin_client.rs index dee3d936cc..cf4b373561 100644 --- a/src/thin_client.rs +++ b/src/thin_client.rs @@ -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(()) } diff --git a/tests/multinode.rs b/tests/multinode.rs index c0803106a2..d51181d089 100644 --- a/tests/multinode.rs +++ b/tests/multinode.rs @@ -2015,7 +2015,6 @@ fn test_fullnode_rotate( .transfer(500, &mint_keypair, bob, &client_last_id) .unwrap(); debug!("transfer send, signature is {:?}", signature); - std::thread::sleep(std::time::Duration::from_millis(100)); client.poll_for_signature(&signature).unwrap(); debug!("transfer signature confirmed"); let actual_bob_balance = @@ -2030,7 +2029,6 @@ fn test_fullnode_rotate( } else { trace!("waiting for leader to reach max tick height..."); } - sleep(Duration::from_millis(100)); } }