Skip to content

Commit d49b890

Browse files
committed
Sleep ahead of test with ab
1 parent ef33867 commit d49b890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ script:
9696
if [ "$PERFORMANCE" = "select" ]; then
9797
cd examples
9898
./benchmark_select 8080 $(nproc) &
99+
sleep 5 && ab -n 10000000 -c 1000 localhost:8080/plaintext
99100
fi
100-
- if [ "$PERFORMANCE" = "select" ]; then ab -n 10000000 -c 1000 localhost:8080/plaintext; fi;
101101
- |
102102
if [ "$PERFORMANCE" = "threads" ]; then
103103
cd examples
104104
./benchmark_threads 8080 &
105+
sleep 5 && ab -n 10000000 -c 1000 localhost:8080/plaintext
105106
fi
106-
- if [ "$PERFORMANCE" = "threads" ]; then ab -n 10000000 -c 1000 localhost:8080/plaintext; fi;
107107
after_success:
108108
- if [ "$DEBUG" = "debug" ] && [ "$COVERAGE" = "coverage" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then bash <(curl -s https://codecov.io/bash); fi
109109
matrix:

0 commit comments

Comments
 (0)