Skip to content

Commit

Permalink
Fix manager_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Oron Sharabi <[email protected]>
  • Loading branch information
oronsh committed Aug 19, 2022
1 parent c61beea commit 8817607
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/rules/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/prometheus/model/exemplar"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/model/metadata"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/rules"
"github.com/prometheus/prometheus/storage"
Expand All @@ -45,6 +46,9 @@ func (n nopAppender) AppendExemplar(storage.SeriesRef, labels.Labels, exemplar.E
func (n nopAppender) Commit() error { return nil }
func (n nopAppender) Rollback() error { return nil }
func (n nopAppender) Appender(_ context.Context) (storage.Appender, error) { return n, nil }
func (n nopAppender) UpdateMetadata(storage.SeriesRef, labels.Labels, metadata.Metadata) (storage.SeriesRef, error) {
return 0, nil
}

type nopQueryable struct{}

Expand Down

0 comments on commit 8817607

Please sign in to comment.