Testing - don't test server outside CI. ()

This commit is contained in:
Finn Bear 2023-05-26 03:34:57 -07:00 committed by GitHub
parent 33c35949b7
commit 0a0031e9e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions
.github/workflows
tests

View file

@ -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

View file

@ -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}");
}
}