aboutsummaryrefslogtreecommitdiff
path: root/internal/conf/log_test.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-02 01:14:26 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-02 01:14:26 +0800
commitfe7b094b9ef242820b44ffd17bbbde5a3530e944 (patch)
tree46a98379ee945199ccc97cb235b368dc893a2988 /internal/conf/log_test.go
parent7382c23a17cad73c137e9bca66be0cd1b04b75fd (diff)
log: fix tests
Diffstat (limited to 'internal/conf/log_test.go')
-rw-r--r--internal/conf/log_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/conf/log_test.go b/internal/conf/log_test.go
index 8d5d2e35..a9346997 100644
--- a/internal/conf/log_test.go
+++ b/internal/conf/log_test.go
@@ -23,7 +23,7 @@ MODE = console
t.Fatal(err)
}
- got, hasConsole, err := initLogConf(f)
+ got, hasConsole, err := initLogConf(f, false)
assert.NotNil(t, err)
assert.Equal(t, `missing configuration section [log.console] for "console" logger`, err.Error())
assert.False(t, hasConsole)
@@ -41,7 +41,7 @@ MODE = file
t.Fatal(err)
}
- got, hasConsole, err := initLogConf(f)
+ got, hasConsole, err := initLogConf(f, false)
if err != nil {
t.Fatal(err)
}
@@ -81,7 +81,7 @@ USERNAME = yoyo
t.Fatal(err)
}
- got, hasConsole, err := initLogConf(f)
+ got, hasConsole, err := initLogConf(f, false)
if err != nil {
t.Fatal(err)
}