ClientV3 tests use integration.NewClient that configures proper logger.

This commit is contained in:
Piotr Tabor
2021-04-29 17:12:12 +02:00
parent bc8d3f6639
commit ffea1537d4
35 changed files with 103 additions and 72 deletions

View File

@@ -15,8 +15,9 @@
package auth
import (
"github.com/prometheus/client_golang/prometheus"
"sync"
"github.com/prometheus/client_golang/prometheus"
)
var (

View File

@@ -15,11 +15,10 @@
package v2http
import (
"net/http"
"strconv"
"time"
"net/http"
"go.etcd.io/etcd/api/v3/etcdserverpb"
"go.etcd.io/etcd/server/v3/etcdserver/api/v2error"
"go.etcd.io/etcd/server/v3/etcdserver/api/v2http/httptypes"

View File

@@ -17,15 +17,16 @@ package etcdserver
import (
"bytes"
"fmt"
"go.etcd.io/etcd/client/pkg/v3/logutil"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"io/ioutil"
"os"
"path/filepath"
"strings"
"testing"
"time"
"go.etcd.io/etcd/client/pkg/v3/logutil"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
func TestNewRaftLogger(t *testing.T) {