Skip to content

Commit

Permalink
integration: reset default logging level in TestRestartRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed May 12, 2017
1 parent b9f5a00 commit 5b4677b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions integration/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion integration/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 5b4677b

Please sign in to comment.