diff options
Diffstat (limited to 'tests/e2e.sh')
| -rwxr-xr-x | tests/e2e.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/e2e.sh b/tests/e2e.sh index b79c748..26914f1 100755 --- a/tests/e2e.sh +++ b/tests/e2e.sh @@ -519,6 +519,11 @@ sleep 2 expect "it stays dismissed when a terminal starts tmux" "ls $STATE2/offer.json 2>/dev/null | wc -l | tr -d ' '" 0 expect "the layout can still be restored by hand" "renv \"$DINGGER\" restore --dry-run | grep -c '^create keep'" 1 +# --- 17. a daemon killed mid-write leaves consistent state ------------------- +echo "17. kill during a write" +expect "20 kills right after done: hook and display state agree" \ + "\"$ROOT/tests/kill-race.sh\" \"$DINGGER\" 20 | grep -o '^[^:]*: [0-9]* of' | sed 's/.*: //'" "0 of" 1 + # Every daemon this run started must stop with it. kill "$DAEMON_PID" "$DAEMON2_PID" 2>/dev/null expect "the test daemons stop" "ps -o pid= -p $DAEMON_PID,$DAEMON2_PID | wc -l | tr -d ' '" 0 |
