mirror of https://github.com/fafhrd91/actix-net
fix test
This commit is contained in:
parent
ba8dedc212
commit
4a165b9898
|
@ -112,7 +112,7 @@ jobs:
|
|||
- name: tests
|
||||
if: matrix.target.os == 'ubuntu-latest'
|
||||
run: |
|
||||
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=stable cargo ci-test && RUSTUP_TOOLCHAIN=stable cargo ci-test-rt-linux && RUSTUP_TOOLCHAIN=stable cargo ci-test-server-linux"
|
||||
sudo bash -c "ulimit -Sl 512 && ulimit -Hl 512 && PATH=$PATH:/usr/share/rust/.cargo/bin && RUSTUP_TOOLCHAIN=${matrix.version} cargo ci-test && RUSTUP_TOOLCHAIN=stable cargo ci-test-rt-linux && RUSTUP_TOOLCHAIN=stable cargo ci-test-server-linux"
|
||||
|
||||
- name: Clear the cargo caches
|
||||
run: |
|
||||
|
|
|
@ -142,6 +142,7 @@ fn test_start() {
|
|||
sys.stop();
|
||||
h.join().unwrap().unwrap();
|
||||
|
||||
thread::sleep(Duration::from_secs(1));
|
||||
assert!(net::TcpStream::connect(addr).is_err());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue