mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
Merge pull request #510 from nats-io/fix_test_logoutput
Fix leaking log output in unit tests
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
debug: true # enable on reload
|
||||
trace: true # enable on reload
|
||||
logtime: false
|
||||
log_file: "/tmp/gnatsd.log"
|
||||
|
||||
# Enable TLS on reload
|
||||
tls {
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
debug: false
|
||||
trace: true
|
||||
logtime: true # logtime not supported on config reload
|
||||
log_file: "/tmp/gnatsd.log"
|
||||
|
||||
@@ -2,3 +2,4 @@
|
||||
debug: false
|
||||
trace: false
|
||||
logtime: false
|
||||
log_file: "/tmp/gnatsd.log"
|
||||
|
||||
@@ -39,6 +39,7 @@ func TestConfigReloadUnsupported(t *testing.T) {
|
||||
Debug: false,
|
||||
Trace: false,
|
||||
Logtime: false,
|
||||
LogFile: "/tmp/gnatsd.log",
|
||||
MaxControlLine: 1024,
|
||||
MaxPayload: 1048576,
|
||||
MaxConn: 65536,
|
||||
@@ -99,6 +100,7 @@ func TestConfigReloadInvalidConfig(t *testing.T) {
|
||||
Debug: false,
|
||||
Trace: false,
|
||||
Logtime: false,
|
||||
LogFile: "/tmp/gnatsd.log",
|
||||
MaxControlLine: 1024,
|
||||
MaxPayload: 1048576,
|
||||
MaxConn: 65536,
|
||||
@@ -159,6 +161,7 @@ func TestConfigReload(t *testing.T) {
|
||||
Debug: false,
|
||||
Trace: false,
|
||||
Logtime: false,
|
||||
LogFile: "/tmp/gnatsd.log",
|
||||
MaxControlLine: 1024,
|
||||
MaxPayload: 1048576,
|
||||
MaxConn: 65536,
|
||||
|
||||
Reference in New Issue
Block a user