diff options
Diffstat (limited to 'tests/python/daemon.md')
-rw-r--r-- | tests/python/daemon.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/python/daemon.md b/tests/python/daemon.md index 285f9f8..6d9b8f4 100644 --- a/tests/python/daemon.md +++ b/tests/python/daemon.md @@ -17,11 +17,11 @@ This scenario starts a background process, verifies it's started, and verifies it's terminated after the scenario ends. ~~~scenario -given there is no "/bin/sleep 12765" process -when I start "/bin/sleep 12765" as a background process as sleepyhead -then a process "/bin/sleep 12765" is running +given there is no "sleep 12765" process +when I start "sleep 12765" as a background process as sleepyhead +then a process "sleep 12765" is running when I stop background process sleepyhead -then there is no "/bin/sleep 12765" process +then there is no "sleep 12765" process ~~~ @@ -68,12 +68,12 @@ This scenario verifies that if the background process never starts listening on its port, the daemon library handles that correctly. ~~~scenario -given there is no "/bin/sleep 12765" process -when I try to start "/bin/sleep 12765" as sleepyhead, on port 8888 +given there is no "sleep 12765" process +when I try to start "sleep 12765" as sleepyhead, on port 8888 then starting daemon fails with "ConnectionRefusedError" -then a process "/bin/sleep 12765" is running +then a process "sleep 12765" is running when I stop background process sleepyhead -then there is no "/bin/sleep 12765" process +then there is no "sleep 12765" process ~~~ @@ -101,7 +101,7 @@ have had time to produce it yet. ~~~{#chatty-daemon.sh .file .sh .numberLines} -#!/bin/bash +#!/usr/bin/env bash set -euo pipefail |