pkg/tsdb: Check errors (#19837)

Check errors in pkg/tsdb.
This commit is contained in:
Arve Knudsen
2019-10-22 16:16:53 +02:00
committed by GitHub
parent 79cbe191b6
commit bb50fc5965
10 changed files with 40 additions and 20 deletions

View File

@@ -11,9 +11,10 @@ import (
func TestInterval(t *testing.T) {
Convey("Default interval ", t, func() {
cfg := setting.NewCfg()
cfg.Load(&setting.CommandLineArgs{
err := cfg.Load(&setting.CommandLineArgs{
HomePath: "../../",
})
So(err, ShouldBeNil)
calculator := NewIntervalCalculator(&IntervalOptions{})