mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: reset default logging level in TestRestartRemoved
This commit is contained in:
parent
b9f5a00b13
commit
5b4677b7d7
@ -447,7 +447,9 @@ func TestRejectUnhealthyRemove(t *testing.T) {
|
||||
// (see https://github.com/coreos/etcd/issues/7512 for more).
|
||||
func TestRestartRemoved(t *testing.T) {
|
||||
defer testutil.AfterTest(t)
|
||||
|
||||
capnslog.SetGlobalLogLevel(capnslog.INFO)
|
||||
defer capnslog.SetGlobalLogLevel(defaultLogLevel)
|
||||
|
||||
// 1. start single-member cluster
|
||||
c := NewCluster(t, 1)
|
||||
|
@ -16,6 +16,8 @@ package integration
|
||||
|
||||
import "github.com/coreos/pkg/capnslog"
|
||||
|
||||
const defaultLogLevel = capnslog.CRITICAL
|
||||
|
||||
func init() {
|
||||
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
|
||||
capnslog.SetGlobalLogLevel(defaultLogLevel)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user