test: fixes broken test on windows
This commit is contained in:
@@ -3,6 +3,7 @@ package dashboards
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -52,7 +53,9 @@ func TestCreatingNewDashboardFileReader(t *testing.T) {
|
|||||||
reader, err := NewDashboardFileReader(cfg, log.New("test-logger"))
|
reader, err := NewDashboardFileReader(cfg, log.New("test-logger"))
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
|
|
||||||
So(reader.Path, ShouldEqual, "/var/lib/grafana/dashboards")
|
if runtime.GOOS != "windows" {
|
||||||
|
So(reader.Path, ShouldEqual, "/var/lib/grafana/dashboards")
|
||||||
|
}
|
||||||
So(filepath.IsAbs(reader.Path), ShouldBeTrue)
|
So(filepath.IsAbs(reader.Path), ShouldBeTrue)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user