*: fix tests failing due to path.Join usage
Solution: Use `file/filepath` package to construct expected path. This package is OS-aware, see https://github.com/golang/go/issues/30616.
This commit is contained in:
parent
6cdb701a9d
commit
aefb6f9fee
21 changed files with 118 additions and 116 deletions
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
@ -58,7 +58,7 @@ func TestCompiler(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
|
||||
targetPath := path.Join(examplePath, info.Name())
|
||||
targetPath := filepath.Join(examplePath, info.Name())
|
||||
require.NoError(t, compileFile(targetPath))
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue