mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Change promql test to allow overriding storage layer
This commit is contained in:
parent
51866b9fee
commit
7189dc21c8
|
@ -185,6 +185,11 @@ func newTest(t testutil.T, input string) (*test, error) {
|
||||||
return test, err
|
return test, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetStorage sets test's storage
|
||||||
|
func (t *test) SetStorage(s storage.Storage) {
|
||||||
|
t.storage = s
|
||||||
|
}
|
||||||
|
|
||||||
//go:embed testdata
|
//go:embed testdata
|
||||||
var testsFs embed.FS
|
var testsFs embed.FS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue