Attempt to fix api test (#868)

Now wait 1 second for the wallet to start.
This commit is contained in:
Quentin Le Sceller 2018-03-25 23:32:15 -04:00 committed by Ignotus Peverell
parent f72b36116e
commit 3ae7b0dedf

View file

@ -36,7 +36,7 @@ use core::global::ChainTypes;
use framework::{LocalServerContainer, LocalServerContainerConfig};
use util::{init_test_logger, LOGGER};
// #[test]
#[test]
fn simple_server_wallet() {
let test_name_dir = "test_servers";
core::global::set_mining_mode(core::global::ChainTypes::AutomatedTesting);
@ -58,6 +58,9 @@ fn simple_server_wallet() {
w.run_wallet(0);
});
// Wait for the wallet to start
thread::sleep(time::Duration::from_millis(1000));
let mut server_config = LocalServerContainerConfig::default();
server_config.name = String::from("api_server_one");
server_config.p2p_server_port = 40000;