mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
22 lines
538 B
Bash
Executable File
22 lines
538 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
start_suite "Test long connections (procspy) between processes"
|
|
|
|
weave_on $HOST1 launch
|
|
scope_on $HOST1 launch --probe.conntrack=false
|
|
weave_on $HOST1 run -d --name nginx nginx
|
|
weave_on $HOST1 run -dti --name client alpine /bin/sh -c "while true; do \
|
|
nc nginx.weave.local 80 || true; \
|
|
sleep 1; \
|
|
done"
|
|
|
|
wait_for processes $HOST1 60 "nginx: worker process" nc
|
|
|
|
has processes $HOST1 "nginx: worker process"
|
|
has processes $HOST1 nc
|
|
has_connection processes $HOST1 nc "nginx: worker process"
|
|
|
|
scope_end_suite
|