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.

Keep caller fixtures on the healthy guest retention path

pulse-triage[bot]e3ea596b98cb
diff --git a/internal/monitoring/guest_memory_stability_test.go b/internal/monitoring/guest_memory_stability_test.go
index 25aa19e3a8..e9894590d7 100644
--- a/internal/monitoring/guest_memory_stability_test.go
+++ b/internal/monitoring/guest_memory_stability_test.go
@@ -103,7 +103,9 @@ func TestHandleClusterVMResourcePreservesHealthyGuestMemoryFromPreviousSnapshot(
defer mon.alertManager.Stop()
defer mon.notificationMgr.Stop()
- previousSample := time.Now().Add(-time.Minute)
+ // Exercise the healthy-guest path after the original-source window,
+ // while remaining inside the distinct ten-minute healthy retention window.
+ previousSample := time.Now().Add(-3 * time.Minute)
mon.recordGuestSnapshot("test", "qemu", "node1", 101, GuestMemorySnapshot{
Name: "vm-101",
Status: "running",
@@ -176,7 +178,9 @@ func TestPollVMsWithNodesPreservesHealthyGuestMemoryFromPreviousSnapshot(t *test
defer mon.alertManager.Stop()
defer mon.notificationMgr.Stop()
- previousSample := time.Now().Add(-time.Minute)
+ // Exercise the healthy-guest path after the original-source window,
+ // while remaining inside the distinct ten-minute healthy retention window.
+ previousSample := time.Now().Add(-3 * time.Minute)
mon.recordGuestSnapshot("test", "qemu", "node1", 101, GuestMemorySnapshot{
Name: "vm-101",
Status: "running",