From 63fcabeec516f9bb6c735dd3bd2f45469f9271db Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 27 Jul 2016 17:41:43 -0700 Subject: [PATCH] some polish --- clientconn.go | 4 ---- test/end2end_test.go | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/clientconn.go b/clientconn.go index 01e3ef5f..bb809e52 100644 --- a/clientconn.go +++ b/clientconn.go @@ -296,8 +296,6 @@ const ( TransientFailure // Shutdown indicates the ClientConn has started shutting down. Shutdown - // Drain - Drain ) func (s ConnectivityState) String() string { @@ -312,8 +310,6 @@ func (s ConnectivityState) String() string { return "TRANSIENT_FAILURE" case Shutdown: return "SHUTDOWN" - case Drain: - return "DRAIN" default: panic(fmt.Sprintf("unknown connectivity state: %d", s)) } diff --git a/test/end2end_test.go b/test/end2end_test.go index 5fd61d5c..57a47482 100644 --- a/test/end2end_test.go +++ b/test/end2end_test.go @@ -2282,8 +2282,8 @@ func leakCheck(t testing.TB) func() { } return func() { // Loop, waiting for goroutines to shut down. - // Wait up to 5 seconds, but finish as quickly as possible. - deadline := time.Now().Add(5 * time.Second) + // Wait up to 10 seconds, but finish as quickly as possible. + deadline := time.Now().Add(10 * time.Second) for { var leaked []string for _, g := range interestingGoroutines() {