store: silence server logs in v2v3 store tests

Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
release-3.3
Gyu-Ho Lee 2017-11-08 13:21:32 -08:00
parent 21178f5119
commit 5cea18baf1
1 changed files with 9 additions and 0 deletions

View File

@ -17,13 +17,22 @@
package store_test
import (
"io/ioutil"
"testing"
"github.com/coreos/etcd/etcdserver/api/v2v3"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/store"
"github.com/coreos/pkg/capnslog"
"google.golang.org/grpc/grpclog"
)
func init() {
capnslog.SetGlobalLogLevel(capnslog.CRITICAL)
grpclog.SetLoggerV2(grpclog.NewLoggerV2(ioutil.Discard, ioutil.Discard, ioutil.Discard))
}
type v2v3TestStore struct {
store.Store
clus *integration.ClusterV3