mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-27 05:57:27 +00:00
Stop disk-temperature fixture workers before temporary data cleanup
The containing monitoring suite observed TempDir cleanup failing while this fixture left its alert manager running. Register the existing joined shutdown before TempDir removal; temperature, retained-reading, linked-agent and exclusion assertions are unchanged. Change-source: pulse-maintainer
This commit is contained in:
@@ -1171,6 +1171,7 @@ func TestMergeHostAgentSMARTIntoDisksMarksDisksTheAgentReports(t *testing.T) {
|
||||
// device.
|
||||
func TestCheckPhysicalDiskAlertsRaisesProxmoxDiskTemperatureAlerts(t *testing.T) {
|
||||
manager := alerts.NewManagerWithDataDir(t.TempDir())
|
||||
t.Cleanup(manager.Stop)
|
||||
m := &Monitor{alertManager: manager}
|
||||
const instance, node = "pve1", "node1"
|
||||
alertID := func(devPath string) string {
|
||||
|
||||
Reference in New Issue
Block a user