summaryrefslogtreecommitdiff
path: root/run_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'run_test.go')
-rw-r--r--run_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/run_test.go b/run_test.go
index 4cbf36d..95b48b3 100644
--- a/run_test.go
+++ b/run_test.go
@@ -12,6 +12,8 @@ func TestCompleter_Complete(t *testing.T) {
// 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