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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
test: Fix unreachable code warning in panic recovery test
rcourtmanc4fef5e560f7
diff --git a/internal/monitoring/monitor_test.go b/internal/monitoring/monitor_test.goindex 39511bee52..c3b6e0e379 100644--- a/internal/monitoring/monitor_test.go+++ b/internal/monitoring/monitor_test.go@@ -686,14 +686,14 @@ func TestRecoverFromPanic(t *testing.T) {})t.Run("code after panic is not executed", func(t *testing.T) {- afterPanicExecuted := false+ panicReached := falsefunc() {defer recoverFromPanic("test-goroutine")+ panicReached = truepanic("stop here")- afterPanicExecuted = true //nolint:govet // unreachable code is intentional for test}()- if afterPanicExecuted {- t.Error("expected code after panic to not execute")+ if !panicReached {+ t.Error("expected panic to be reached")}})}