fixup! Add check config watchers to the store
@@ -3,6 +3,7 @@ package mockstore
import (
"context"
+ "github.com/sensu/sensu-go/backend/store"
"github.com/sensu/sensu-go/types"
)
@@ -29,3 +30,9 @@ func (s *MockStore) UpdateCheckConfig(ctx context.Context, check *types.CheckCon
args := s.Called(ctx, check)
return args.Error(0)
}
+
+// GetCheckConfigWatcher ...
+func (s *MockStore) GetCheckConfigWatcher(ctx context.Context) <-chan store.WatchEventCheckConfig {
+ args := s.Called(ctx)
+ return args.Get(0).(<-chan store.WatchEventCheckConfig)
+}
