From d45a159456a3e1e71979c4b787c04ef9ecffc133 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Tue, 12 Jan 2021 20:07:00 -0800 Subject: [PATCH] Fix tests --- Makefile | 2 +- server/filesystem/filesystem_test.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bc18a83..594cc64 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ build: debug: go build -race - ./wings --debug --ignore-certificate-errors --config config.yml + sudo ./wings --debug --ignore-certificate-errors --config config.yml compress: upx --brute build/wings_* diff --git a/server/filesystem/filesystem_test.go b/server/filesystem/filesystem_test.go index 10b0b70..8427738 100644 --- a/server/filesystem/filesystem_test.go +++ b/server/filesystem/filesystem_test.go @@ -3,8 +3,6 @@ package filesystem import ( "bytes" "errors" - . "github.com/franela/goblin" - "github.com/pterodactyl/wings/config" "io/ioutil" "math/rand" "os" @@ -12,6 +10,9 @@ import ( "sync/atomic" "testing" "unicode/utf8" + + . "github.com/franela/goblin" + "github.com/pterodactyl/wings/config" ) func NewFs() (*Filesystem, *rootFs) { @@ -33,7 +34,7 @@ func NewFs() (*Filesystem, *rootFs) { rfs.reset() - fs := New(filepath.Join(tmpDir, "/server"), 0) + fs := New(filepath.Join(tmpDir, "/server"), 0, []string{}) fs.isTest = true return fs, &rfs