Merge pull request #3361 from yichengq/no-log

integration: only print critical log
This commit is contained in:
Yicheng Qin 2015-08-24 09:44:13 -07:00
commit c7f10ed975

View File

@ -19,7 +19,6 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"log"
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
@ -27,10 +26,12 @@ import (
"strings" "strings"
"testing" "testing"
"time" "time"
"github.com/coreos/etcd/Godeps/_workspace/src/github.com/coreos/pkg/capnslog"
) )
func init() { func init() {
log.SetOutput(ioutil.Discard) capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
} }
func TestV2Set(t *testing.T) { func TestV2Set(t *testing.T) {