From 88176076d0f426cc81ce4909eb86b43ad20f0e10 Mon Sep 17 00:00:00 2001 From: Oron Sharabi Date: Fri, 19 Aug 2022 15:27:36 +0300 Subject: [PATCH] Fix manager_test.go Signed-off-by: Oron Sharabi --- pkg/rules/manager_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/rules/manager_test.go b/pkg/rules/manager_test.go index f6e35c2f7bb..9acde97b55a 100644 --- a/pkg/rules/manager_test.go +++ b/pkg/rules/manager_test.go @@ -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" @@ -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{}