integration: reset default logging level in TestRestartRemoved

This commit is contained in:
Anthony Romano 2017-05-11 16:27:57 -07:00
parent b9f5a00b13
commit 5b4677b7d7
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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)
}