diff --git a/internal/monitoring/monitor_backups_readstate_test.go b/internal/monitoring/monitor_backups_readstate_test.go index d71e6240f..205170fe0 100644 --- a/internal/monitoring/monitor_backups_readstate_test.go +++ b/internal/monitoring/monitor_backups_readstate_test.go @@ -225,7 +225,9 @@ func TestMonitorPollGuestSnapshots_RefreshesStaleCanonicalStoreForClusterGuest(t }}, } - m.pollGuestSnapshots(context.Background(), "homelab", client) + ctx, cancel := context.WithTimeout(context.Background(), 200*time.Millisecond) + defer cancel() + m.pollGuestSnapshots(ctx, "homelab", client) if client.snapshotCalls == 0 { t.Fatal("expected guest snapshot polling to use fresh clustered guest state")