Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test(server): synchronize remaining startup watchdog log capture

pulse-triage[bot]3ac317192775
diff --git a/pkg/server/startup_watchdog_test.go b/pkg/server/startup_watchdog_test.go
index cc05141a0d..612d0ff688 100644
--- a/pkg/server/startup_watchdog_test.go
+++ b/pkg/server/startup_watchdog_test.go
@@ -1,7 +1,6 @@
package server
import (
- "bytes"
"strings"
"testing"
"time"
@@ -27,7 +26,7 @@ func TestStartupPhaseMarkAndCurrent(t *testing.T) {
}
func TestStartupWatchdogFiresAndNamesLastPhase(t *testing.T) {
- var buf bytes.Buffer
+ var buf syncBuffer
logger := zerolog.New(&buf)
phase := &startupPhase{}
@@ -54,7 +53,7 @@ func TestStartupWatchdogFiresAndNamesLastPhase(t *testing.T) {
}
func TestStartupWatchdogStopIsIdempotentAndPreventsFire(t *testing.T) {
- var buf bytes.Buffer
+ var buf syncBuffer
logger := zerolog.New(&buf)
stop := startStartupWatchdog(logger, &startupPhase{}, 15*time.Millisecond)