Browse Source

test: fixes broken test on windows

bergquist 7 years ago
parent
commit
d5aeae3a90
1 changed files with 4 additions and 1 deletions
  1. 4 1
      pkg/services/provisioning/dashboards/file_reader_test.go

+ 4 - 1
pkg/services/provisioning/dashboards/file_reader_test.go

@@ -3,6 +3,7 @@ package dashboards
 import (
 	"os"
 	"path/filepath"
+	"runtime"
 	"testing"
 	"time"
 
@@ -52,7 +53,9 @@ func TestCreatingNewDashboardFileReader(t *testing.T) {
 			reader, err := NewDashboardFileReader(cfg, log.New("test-logger"))
 			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)
 		})