Browse Source

fix reader linux test

Arno Uhlig 7 years ago
parent
commit
1355c00c44
1 changed files with 4 additions and 3 deletions
  1. 4 3
      pkg/services/provisioning/dashboards/file_reader_linux_test.go

+ 4 - 3
pkg/services/provisioning/dashboards/file_reader_linux_test.go

@@ -30,10 +30,11 @@ func TestProvsionedSymlinkedFolder(t *testing.T) {
 	want, err := filepath.Abs(containingId)
 
 	if err != nil {
-		t.Errorf("expected err to be nill")
+		t.Errorf("expected err to be nil")
 	}
 
-	if reader.Path != want {
-		t.Errorf("got %s want %s", reader.Path, want)
+	resolvedPath := reader.resolvePath(reader.Path)
+	if resolvedPath != want {
+		t.Errorf("got %s want %s", resolvedPath, want)
 	}
 }