Skip to content
Permalink
Browse files

CI doesn't fail creating a /root/x folder because of the way it works.

  • Loading branch information...
Depado committed Feb 13, 2016
1 parent 9042f57 commit 92654ca92965f69bb0c88f1c08bf19d6f32ed645
Showing with 0 additions and 4 deletions.
  1. +0 −4 utils/files_test.go
@@ -2,7 +2,6 @@ package utils

import (
"os"
"path"
"testing"
)

@@ -18,9 +17,6 @@ func TestCheckAndCreateFolder(t *testing.T) {
if err = CheckAndCreateFolder(testfolder); err != nil {
t.Error("Error when folder already exists")
}
if err = CheckAndCreateFolder(path.Join("/root/", testfolder)); err == nil {
t.Error("Should return a permission error when creating in /root/")
}
if err = os.Remove(testfolder); err != nil {
t.Error("Could not remove test folder")
}

0 comments on commit 92654ca

Please sign in to comment.
You can’t perform that action at this time.