Fix tests
This commit is contained in:
parent
e9e70b6081
commit
d45a159456
2
Makefile
2
Makefile
|
@ -4,7 +4,7 @@ build:
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
go build -race
|
go build -race
|
||||||
./wings --debug --ignore-certificate-errors --config config.yml
|
sudo ./wings --debug --ignore-certificate-errors --config config.yml
|
||||||
|
|
||||||
compress:
|
compress:
|
||||||
upx --brute build/wings_*
|
upx --brute build/wings_*
|
||||||
|
|
|
@ -3,8 +3,6 @@ package filesystem
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
. "github.com/franela/goblin"
|
|
||||||
"github.com/pterodactyl/wings/config"
|
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
|
@ -12,6 +10,9 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"testing"
|
"testing"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
. "github.com/franela/goblin"
|
||||||
|
"github.com/pterodactyl/wings/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewFs() (*Filesystem, *rootFs) {
|
func NewFs() (*Filesystem, *rootFs) {
|
||||||
|
@ -33,7 +34,7 @@ func NewFs() (*Filesystem, *rootFs) {
|
||||||
|
|
||||||
rfs.reset()
|
rfs.reset()
|
||||||
|
|
||||||
fs := New(filepath.Join(tmpDir, "/server"), 0)
|
fs := New(filepath.Join(tmpDir, "/server"), 0, []string{})
|
||||||
fs.isTest = true
|
fs.isTest = true
|
||||||
|
|
||||||
return fs, &rfs
|
return fs, &rfs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user