Skip to content

Commit ceed023

Browse files
author
Bogdan Kanivets
committed
tests: fixing dependencies that brake tests in go.1.15.15
- retry_interceptor_test causes: clientv3/naming/grpc.go:25:2: module google.golang.org/grpc@latest found (v1.46.0), but does not contain package google.golang.org/grpc/naming etcd-io#12124
1 parent 5505d7a commit ceed023

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

clientv3/retry_interceptor_test.go

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1+
// Copyright 2022 The etcd Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Based on github.com/grpc-ecosystem/go-grpc-middleware/retry, but modified to support the more
16+
// fine grained error checking required by write-at-most-once retry semantics of etcd.
17+
118
package clientv3
219

320
import (
4-
"go.etcd.io/etcd/api/v3/v3rpc/rpctypes"
5-
"go.etcd.io/etcd/client/v3/credentials"
21+
"go.etcd.io/etcd/clientv3/credentials"
22+
"go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes"
623
grpccredentials "google.golang.org/grpc/credentials"
724
"testing"
825
)

0 commit comments

Comments
 (0)