fix typos in drone tests
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
edf212de7e
commit
661e3709fb
|
@ -32,7 +32,7 @@ steps:
|
|||
commands:
|
||||
- sleep 75
|
||||
- ./scripts/deploy_sandbox_client.sh server:4000
|
||||
- cargo test --no-default_features --features "client,tls_no_verify"
|
||||
- cargo test --no-default-features --features "client,tls_no_verify"
|
||||
|
||||
services:
|
||||
- name: database
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
extern crate log;
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
use libtrader::server;
|
||||
#[cfg(feature = "client")]
|
||||
use libtrader::client;
|
||||
#[cfg(feature = "server")]
|
||||
use libtrader::server;
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "server")]
|
||||
|
@ -18,11 +18,10 @@ fn main() {
|
|||
|
||||
// Spawn server
|
||||
rt.block_on(async move {
|
||||
server::IP.scope("0.0.0.0:0000".parse().unwrap(), async move {
|
||||
server::IP
|
||||
.scope("0.0.0.0:0000".parse().unwrap(), async move {
|
||||
// for main task logging
|
||||
server::initialize()
|
||||
.await
|
||||
.expect("failed running server");
|
||||
server::initialize().await.expect("failed running server");
|
||||
})
|
||||
.await;
|
||||
});
|
||||
|
|
|
@ -7,10 +7,10 @@ use tokio::io::AsyncReadExt;
|
|||
use tokio::io::AsyncWriteExt;
|
||||
use tokio::net::TcpStream;
|
||||
|
||||
#[cfg(all(feature = "server", not(feature = "client")))]
|
||||
use tokio_rustls::server::TlsStream;
|
||||
#[cfg(all(feature = "client", not(feature = "server")))]
|
||||
use tokio_rustls::client::TlsStream;
|
||||
#[cfg(all(feature = "server", not(feature = "client")))]
|
||||
use tokio_rustls::server::TlsStream;
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Default)]
|
||||
pub struct Message {
|
||||
|
|
Loading…
Reference in New Issue