diff --git a/internal/config/guest_metadata_test.go b/internal/config/guest_metadata_test.go index 121b8fb6a..ce9959c91 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) {