Testing - don't test server outside CI. (#2047)
This commit is contained in:
parent
33c35949b7
commit
0a0031e9e2
2 changed files with 4 additions and 2 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -103,7 +103,7 @@ jobs:
|
|||
sudo apt-get -y install protobuf-compiler libprotobuf-dev
|
||||
|
||||
- name: Run cargo test
|
||||
run: cargo test --locked --no-default-features --features storage-mem,scripting,http --workspace -- --skip api_integration
|
||||
run: cargo test --locked --no-default-features --features storage-mem,scripting,http --workspace -- --skip api_integration --include-ignored
|
||||
|
||||
ws-engine:
|
||||
name: WebSocket engine
|
||||
|
|
|
@ -96,6 +96,7 @@ mod cli_integration {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "only runs in CI"]
|
||||
fn start() {
|
||||
let mut rng = thread_rng();
|
||||
|
||||
|
@ -228,6 +229,7 @@ mod cli_integration {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "only runs in CI"]
|
||||
fn start_tls() {
|
||||
let mut rng = thread_rng();
|
||||
|
||||
|
@ -255,6 +257,6 @@ mod cli_integration {
|
|||
std::thread::sleep(std::time::Duration::from_millis(50));
|
||||
|
||||
let output = server.kill().output().unwrap_err();
|
||||
assert!(output.contains("Started web server"));
|
||||
assert!(output.contains("Started web server"), "couldn't start web server: {output}");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue