Skip to content

Commit

Permalink
chore: fix stress test (#3233)
Browse files Browse the repository at this point in the history
  • Loading branch information
blasrodri authored Dec 8, 2020
1 parent e013913 commit fc7a4b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/stress-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Stress Test
on:
pull_request:
push:
branches:
- master
Expand All @@ -18,12 +19,12 @@ jobs:
run: rustup update stable

- name: Install Valgrind
run: apt install -y valgrind
run: sudo apt-get install -y valgrind

# Compiles each of the stress test examples.
- name: Compile stress test examples
run: cargo build -p stress-test --release --examples ${{ matrix.stress-test }}
run: cargo build -p stress-test --release --example ${{ matrix.stress-test }}

# Runs each of the examples using Valgrind. Detects leaks and displays them.
- name: Run valgrind
run: valgrind --leak-check=full --show-leak-kinds=all ./target/release/${{ matrix.stress-test }}
run: valgrind --leak-check=full --show-leak-kinds=all ./target/release/examples/${{ matrix.stress-test }}
2 changes: 1 addition & 1 deletion stress-test/examples/simple_echo_tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use tokio::{
};

const TCP_ENDPOINT: &str = "127.0.0.1:8080";
const NUM_MSGS: usize = 10_000;
const NUM_MSGS: usize = 100;
const MSG_SIZE: usize = 1024;

fn main() {
Expand Down

0 comments on commit fc7a4b3

Please sign in to comment.