commit | d416adabcd01bd8bcaf5ed3e2fd852ddbf78ab26 | [log] [tgz] |
---|---|---|
author | Suharsh Sivakumar <suharshs@google.com> | Thu Oct 29 11:25:05 2015 -0700 |
committer | Suharsh Sivakumar <suharshs@google.com> | Thu Oct 29 11:25:05 2015 -0700 |
tree | 968810a3de80874aa9a483fe3f46d57e54d13180 | |
parent | fb2bf11fc1dfca68dbe2a4ba51fe4cf9dca6dc2a [diff] |
rpc/test/client_test: Make chan not block forever. Change-Id: I053a14d7aae4096a41c6dd8e3acab9c855b10357
diff --git a/runtime/internal/rpc/test/client_test.go b/runtime/internal/rpc/test/client_test.go index a42aca4..af0cd1b 100644 --- a/runtime/internal/rpc/test/client_test.go +++ b/runtime/internal/rpc/test/client_test.go
@@ -539,7 +539,11 @@ // Make sure we failed because we really did close the connection // with our filter - <-ch + select { + case <-ch: + case <-time.After(10 * time.Second): + t.Errorf("timeout waiting for chan") + } } func TestStartCallSecurity(t *testing.T) {