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.

fix: wait for async save in guest metadata test

rcourtman8400976e8099
diff --git a/internal/config/guest_metadata_test.go b/internal/config/guest_metadata_test.go
index 121b8fb6a9..ce9959c915 100644
--- a/internal/config/guest_metadata_test.go
+++ b/internal/config/guest_metadata_test.go
@@ -647,6 +647,9 @@ func TestGuestMetadataStore_GetWithLegacyMigration_ClusteredMatchesNodeFormat(t
if result.ID != "pve1:node1:100" {
t.Errorf("ID = %q, want %q", result.ID, "pve1:node1:100")
}
+
+ // Wait for async save to complete before test cleanup
+ time.Sleep(100 * time.Millisecond)
}
func TestGuestMetadataStore_GetWithLegacyMigration_ConcurrentMigration(t *testing.T) {