From 7189dc21c86ede3ffb6aaf00343833450434eb55 Mon Sep 17 00:00:00 2001 From: Thomas Jackson Date: Tue, 17 Apr 2018 08:45:02 -0700 Subject: [PATCH] Change promql test to allow overriding storage layer --- promql/promqltest/test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/promql/promqltest/test.go b/promql/promqltest/test.go index e078bcb60b..09f9386f5b 100644 --- a/promql/promqltest/test.go +++ b/promql/promqltest/test.go @@ -185,6 +185,11 @@ func newTest(t testutil.T, input string) (*test, error) { return test, err } +// SetStorage sets test's storage +func (t *test) SetStorage(s storage.Storage) { + t.storage = s +} + //go:embed testdata var testsFs embed.FS