grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.29k stars 175 forks source link

[mimir.rules.kubernetes] Fix flaky test #1020

Closed ptodev closed 3 months ago

ptodev commented 3 months ago

The CI failed on one of my unrelated PRs, so I thought I'd fix it.

This was the error:

--- FAIL: TestIterationHandlesUpdate (0.00s)
    --- FAIL: TestIterationHandlesUpdate/error_during_restart (0.00s)
        rules_test.go:171: 
                Error Trace:    /drone/src/internal/component/mimir/rules/kubernetes/rules_test.go:171
                Error:          An error is expected but got nil.
                Test:           TestIterationHandlesUpdate/error_during_restart
FAIL
FAIL    github.com/grafana/alloy/internal/component/mimir/rules/kubernetes  0.174s