remove context.WithCancel which is not needed

This commit is contained in:
iamqizhao
2016-10-25 16:53:43 -07:00
parent 044b2b65bc
commit 152ccd8853

View File

@ -2504,8 +2504,7 @@ func testStreamsQuotaRecovery(t *testing.T, e env) {
cc := te.clientConn()
tc := testpb.NewTestServiceClient(cc)
ctx, _ := context.WithCancel(context.Background())
if _, err := tc.StreamingInputCall(ctx); err != nil {
if _, err := tc.StreamingInputCall(context.Background()); err != nil {
t.Fatalf("%v.StreamingInputCall(_) = _, %v, want _, <nil>", tc, err)
}
// Loop until the new max stream setting is effective.