Skip to content

Commit

Permalink
Merge pull request etcd-io#14151 from ahrtr/3.4_skip_TestWatchRequest…
Browse files Browse the repository at this point in the history
…Progress_proxy

[3.4] Skip WatchRequestProgress test in grpc-proxy mode.
  • Loading branch information
ahrtr committed Jun 28, 2022
2 parents f1c59dc + 6958ee8 commit f169e5d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions clientv3/integration/watch_test.go
Expand Up @@ -607,6 +607,9 @@ func TestConfigurableWatchProgressNotifyInterval(t *testing.T) {
}

func TestWatchRequestProgress(t *testing.T) {
if integration.ThroughProxy {
t.Skip("grpc-proxy does not support WatchProgress yet")
}
testCases := []struct {
name string
watchers []string
Expand Down
2 changes: 1 addition & 1 deletion integration/cluster_direct.go
Expand Up @@ -23,7 +23,7 @@ import (
pb "go.etcd.io/etcd/etcdserver/etcdserverpb"
)

const throughProxy = false
const ThroughProxy = false

func toGRPC(c *clientv3.Client) grpcAPI {
return grpcAPI{
Expand Down
2 changes: 1 addition & 1 deletion integration/cluster_proxy.go
Expand Up @@ -26,7 +26,7 @@ import (
"go.etcd.io/etcd/proxy/grpcproxy/adapter"
)

const throughProxy = true
const ThroughProxy = true

var (
pmu sync.Mutex
Expand Down
2 changes: 1 addition & 1 deletion integration/v3_watch_test.go
Expand Up @@ -1242,7 +1242,7 @@ func TestV3WatchCancellation(t *testing.T) {
}

var expected string
if throughProxy {
if ThroughProxy {
// grpc proxy has additional 2 watches open
expected = "3"
} else {
Expand Down
3 changes: 2 additions & 1 deletion proxy/grpcproxy/watch.go
Expand Up @@ -262,7 +262,8 @@ func (wps *watchProxyStream) recvLoop() error {
case *pb.WatchRequest_CancelRequest:
wps.delete(uv.CancelRequest.WatchId)
default:
panic("not implemented")
// Panic or Fatalf would allow network clients to crash the serve remotely.
//panic("not implemented")
}
}
}
Expand Down

0 comments on commit f169e5d

Please sign in to comment.