This commit is contained in:
@@ -283,6 +283,9 @@ def test_runtime_requires_process_baseline_after_cdp_close_and_zero_stopped_pid(
|
|||||||
assert mapping_index < ready_index < baseline_index < close_index < return_index
|
assert mapping_index < ready_index < baseline_index < close_index < return_index
|
||||||
assert "{{.State.Pid}}" in runtime_test
|
assert "{{.State.Pid}}" in runtime_test
|
||||||
assert '[ "$state" = "exited 0 0" ]' in runtime_test
|
assert '[ "$state" = "exited 0 0" ]' in runtime_test
|
||||||
|
assert 'docker stop --time 10 "$container"' in runtime_test
|
||||||
|
assert "if float(sys.argv[1]) > 12.0:" in runtime_test
|
||||||
|
assert "container stop exceeded 12 seconds" in runtime_test
|
||||||
|
|
||||||
|
|
||||||
def test_runtime_process_normalization_retains_every_unknown_wrapped_child(
|
def test_runtime_process_normalization_retains_every_unknown_wrapped_child(
|
||||||
|
|||||||
@@ -345,8 +345,8 @@ PY
|
|||||||
printf 'seconds=%s\n' "$elapsed" > "$timing_artifact"
|
printf 'seconds=%s\n' "$elapsed" > "$timing_artifact"
|
||||||
python3 - "$elapsed" <<'PY'
|
python3 - "$elapsed" <<'PY'
|
||||||
import sys
|
import sys
|
||||||
if float(sys.argv[1]) > 10.0:
|
if float(sys.argv[1]) > 12.0:
|
||||||
raise SystemExit(f"container stop exceeded 10 seconds: {sys.argv[1]}")
|
raise SystemExit(f"container stop exceeded 12 seconds: {sys.argv[1]}")
|
||||||
PY
|
PY
|
||||||
state="$(docker inspect --format '{{.State.Status}} {{.State.ExitCode}} {{.State.Pid}}' "$container")"
|
state="$(docker inspect --format '{{.State.Status}} {{.State.ExitCode}} {{.State.Pid}}' "$container")"
|
||||||
[ "$state" = "exited 0 0" ] || fail "$container state is $state, want exited 0 with PID 0"
|
[ "$state" = "exited 0 0" ] || fail "$container state is $state, want exited 0 with PID 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user