Skip to content

Commit

Permalink
attempt to fix test_metrics(), but still NOK
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Feb 13, 2019
1 parent df61662 commit 7b4e5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ function test_app() {

function test_metrics() {
local name=$1
local port="9779"
local port="8778"

local container_id=$(docker run --name ${name}-test -d -p ${port} ${name})

# sleep is required because after docker run returns, the container is up but our server may not quite be yet
sleep 5

local metrics_port="$(docker port ${container_id} ${port}|sed 's/0.0.0.0://')"
local metrics_reply=$(curl --silent --show-error http://localhost:$metrics_port/metrics)
local metrics_reply=$(curl --silent --show-error http://localhost:$metrics_port/jolokia)

case $metrics_reply in
*"jvm_threads_current"*)
Expand Down

0 comments on commit 7b4e5da

Please sign in to comment.