mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 11:31:08 +03:00
Attempt to fix api test (#868)
Now wait 1 second for the wallet to start.
This commit is contained in:
parent
f72b36116e
commit
3ae7b0dedf
1 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,7 @@ use core::global::ChainTypes;
|
||||||
use framework::{LocalServerContainer, LocalServerContainerConfig};
|
use framework::{LocalServerContainer, LocalServerContainerConfig};
|
||||||
use util::{init_test_logger, LOGGER};
|
use util::{init_test_logger, LOGGER};
|
||||||
|
|
||||||
// #[test]
|
#[test]
|
||||||
fn simple_server_wallet() {
|
fn simple_server_wallet() {
|
||||||
let test_name_dir = "test_servers";
|
let test_name_dir = "test_servers";
|
||||||
core::global::set_mining_mode(core::global::ChainTypes::AutomatedTesting);
|
core::global::set_mining_mode(core::global::ChainTypes::AutomatedTesting);
|
||||||
|
@ -58,6 +58,9 @@ fn simple_server_wallet() {
|
||||||
w.run_wallet(0);
|
w.run_wallet(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Wait for the wallet to start
|
||||||
|
thread::sleep(time::Duration::from_millis(1000));
|
||||||
|
|
||||||
let mut server_config = LocalServerContainerConfig::default();
|
let mut server_config = LocalServerContainerConfig::default();
|
||||||
server_config.name = String::from("api_server_one");
|
server_config.name = String::from("api_server_one");
|
||||||
server_config.p2p_server_port = 40000;
|
server_config.p2p_server_port = 40000;
|
||||||
|
|
Loading…
Reference in a new issue