summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlas Rodriguez Irizar <rodrigblas@gmail.com>2020-12-08 23:38:25 +0100
committerGitHub <noreply@github.com>2020-12-09 07:38:25 +0900
commitfc7a4b3c6e765d6d2b4ea97266cefbf466d52dc9 (patch)
tree0b92fb11f764a5e88d62a9f79aa2107ebcb75f42
parente01391351bcb0715f737cefe94e1bc99f19af226 (diff)
chore: fix stress test (#3233)
-rw-r--r--.github/workflows/stress-test.yml7
-rw-r--r--stress-test/examples/simple_echo_tcp.rs2
2 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/stress-test.yml b/.github/workflows/stress-test.yml
index f71fea37..df1eaef5 100644
--- a/.github/workflows/stress-test.yml
+++ b/.github/workflows/stress-test.yml
@@ -1,5 +1,6 @@
name: Stress Test
on:
+ pull_request:
push:
branches:
- master
@@ -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 }} \ No newline at end of file
+ run: valgrind --leak-check=full --show-leak-kinds=all ./target/release/examples/${{ matrix.stress-test }}
diff --git a/stress-test/examples/simple_echo_tcp.rs b/stress-test/examples/simple_echo_tcp.rs
index 099523fd..01e54502 100644
--- a/stress-test/examples/simple_echo_tcp.rs
+++ b/stress-test/examples/simple_echo_tcp.rs
@@ -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() {