mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: attempt to fix tests on windows
This commit is contained in:
parent
cdefa3c9d3
commit
86e87ab656
1 changed files with 1 additions and 4 deletions
|
@ -4,15 +4,12 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// fix for weird bug on windows github action
|
testEnvFile = "test.env"
|
||||||
testEnvFile = strings.Replace(filepath.Join(os.TempDir(), "test.env"), "C:\\Users\\RUNNER", "", 1)
|
|
||||||
testEnvData = map[string]string{
|
testEnvData = map[string]string{
|
||||||
"people": "shit",
|
"people": "shit",
|
||||||
"moo": "boo",
|
"moo": "boo",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue