Fiddle with timeouts to make CI happy
This commit is contained in:
@ -332,11 +332,11 @@ impl ThinClient {
|
|||||||
pub fn poll_for_signature(&mut self, signature: &Signature) -> io::Result<()> {
|
pub fn poll_for_signature(&mut self, signature: &Signature) -> io::Result<()> {
|
||||||
let now = Instant::now();
|
let now = Instant::now();
|
||||||
while !self.check_signature(signature) {
|
while !self.check_signature(signature) {
|
||||||
if now.elapsed().as_secs() > 4 {
|
if now.elapsed().as_secs() > 15 {
|
||||||
// TODO: Return a better error.
|
// TODO: Return a better error.
|
||||||
return Err(io::Error::new(io::ErrorKind::Other, "signature not found"));
|
return Err(io::Error::new(io::ErrorKind::Other, "signature not found"));
|
||||||
}
|
}
|
||||||
sleep(Duration::from_millis(500));
|
sleep(Duration::from_millis(250));
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -2015,7 +2015,6 @@ fn test_fullnode_rotate(
|
|||||||
.transfer(500, &mint_keypair, bob, &client_last_id)
|
.transfer(500, &mint_keypair, bob, &client_last_id)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
debug!("transfer send, signature is {:?}", signature);
|
debug!("transfer send, signature is {:?}", signature);
|
||||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
|
||||||
client.poll_for_signature(&signature).unwrap();
|
client.poll_for_signature(&signature).unwrap();
|
||||||
debug!("transfer signature confirmed");
|
debug!("transfer signature confirmed");
|
||||||
let actual_bob_balance =
|
let actual_bob_balance =
|
||||||
@ -2030,7 +2029,6 @@ fn test_fullnode_rotate(
|
|||||||
} else {
|
} else {
|
||||||
trace!("waiting for leader to reach max tick height...");
|
trace!("waiting for leader to reach max tick height...");
|
||||||
}
|
}
|
||||||
sleep(Duration::from_millis(100));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user