Skip to content

Commit 14ca020

Browse files
committed
Fix result package test
At the time the test was written, there was no validation of the project path argument, so a dummy path worked fine, but now validation has been added so an existing path must be used.
1 parent a21d86d commit 14ca020

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: result/result_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ import (
3030
func TestWriteReport(t *testing.T) {
3131
flags := test.ConfigurationFlags()
3232

33-
projectPaths := []string{"/foo"}
33+
projectPath, err := os.Getwd() // Path to an arbitrary folder that is guaranteed to exist.
34+
require.Nil(t, err)
35+
projectPaths := []string{projectPath}
3436

3537
reportFolderPathString, err := ioutil.TempDir("", "arduino-check-result-TestWriteReport")
3638
require.Nil(t, err)

0 commit comments

Comments
 (0)