summaryrefslogtreecommitdiff
path: root/common_test.go
diff options
context:
space:
mode:
authorEyal Posener <[email protected]>2019-11-14 06:51:44 +0200
committerEyal Posener <[email protected]>2019-11-18 01:05:47 +0200
commit8724aaf18312e54750540a9578e00d61b1c545d8 (patch)
treed3e736b4fb279975bbcc017ae1bad53e454c5773 /common_test.go
parent05b68ffc813dd10c420993cb1cf927b346c057b8 (diff)
V2
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/common_test.go b/common_test.go
deleted file mode 100644
index 38fe5f1..0000000
--- a/common_test.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package complete
-
-import (
- "os"
- "sync"
- "testing"
-)
-
-var once = sync.Once{}
-
-func initTests() {
- once.Do(func() {
- // 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 {
- panic(err)
- }
- })
-}