Fix spurious signer tests failures (#3312)

* Increasing sleep time for signer tests

* Attempt re-connections instead of delaying tests execution
This commit is contained in:
Tomasz Drwięga
2016-11-09 18:26:35 +01:00
committed by Arkadiy Paronyan
parent 877cfe9b53
commit 915766c7bf
2 changed files with 23 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
use std::ops::{Deref, DerefMut};
use std::thread;
use std::time::{self, Duration};
use std::time;
use std::sync::Arc;
use devtools::{http_client, RandomTempPath};
use rpc::ConfirmationsQueue;
@@ -50,7 +50,6 @@ pub fn serve() -> (Server, usize, GuardedAuthCodes) {
let builder = ServerBuilder::new(queue, path.to_path_buf());
let port = 35000 + rand::random::<usize>() % 10000;
let res = builder.start(format!("127.0.0.1:{}", port).parse().unwrap()).unwrap();
thread::sleep(Duration::from_millis(25));
(res, port, GuardedAuthCodes {
authcodes: AuthCodes::from_file(&path).unwrap(),