summaryrefslogtreecommitdiff
path: root/run_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'run_test.go')
-rw-r--r--run_test.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/run_test.go b/run_test.go
index 95b48b3..147a361 100644
--- a/run_test.go
+++ b/run_test.go
@@ -8,19 +8,7 @@ import (
func TestCompleter_Complete(t *testing.T) {
t.Parallel()
-
- // Set debug environment variable so logs will be printed
- if testing.Verbose() {
- os.Setenv(envDebug, "1")
- // refresh the logger with environment variable set
- Log = getLogger()
- }
-
- // Change to tests directory for testing completion of files and directories
- err := os.Chdir("./tests")
- if err != nil {
- t.Fatal(err)
- }
+ initTests()
c := Command{
Sub: map[string]Command{