diff --git a/cmd/containerboot/main_test.go b/cmd/containerboot/main_test.go index 67f75a4b3..2561e6724 100644 --- a/cmd/containerboot/main_test.go +++ b/cmd/containerboot/main_test.go @@ -689,7 +689,7 @@ type phase struct { t.Fatalf("starting containerboot: %v", err) } defer func() { - cmd.Process.Signal(unix.SIGKILL) + cmd.Process.Signal(unix.SIGTERM) cmd.Process.Wait() }() diff --git a/cmd/containerboot/test_tailscaled.sh b/cmd/containerboot/test_tailscaled.sh index cb84ff767..335e2cb0d 100644 --- a/cmd/containerboot/test_tailscaled.sh +++ b/cmd/containerboot/test_tailscaled.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# This is a fake tailscale CLI that records its arguments, symlinks a +# This is a fake tailscale daemon that records its arguments, symlinks a # fake LocalAPI socket into place, and does nothing until terminated. # # It is used by main_test.go to test the behavior of containerboot. @@ -33,5 +33,6 @@ if [[ -z "$socket" ]]; then fi ln -s "$TS_TEST_SOCKET" "$socket" +trap 'rm -f "$socket"' EXIT -while true; do sleep 1; done +while sleep 10; do :; done