From ecc6476308d7df112dd25163b3f8ebcd0d1d7f0c Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 4 May 2014 08:16:45 +0200 Subject: [PATCH] Revert "Fix protocol close test" This reverts commit 92c1ce57a698d6e45388a403557b592191ad46f3. --- protocol/protocol_test.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/protocol/protocol_test.go b/protocol/protocol_test.go index 9fe9b7510..80c4f83a3 100644 --- a/protocol/protocol_test.go +++ b/protocol/protocol_test.go @@ -5,7 +5,6 @@ import ( "io" "testing" "testing/quick" - "time" ) func TestHeaderFunctions(t *testing.T) { @@ -173,13 +172,7 @@ func TestClose(t *testing.T) { c0 := NewConnection("c0", ar, bw, m0).(wireFormatConnection).next.(*rawConnection) NewConnection("c1", br, aw, m1) - c0.close <- nil - - select { - case <-c0.closed: - case <-time.After(1 * time.Second): - t.Fatal("Did not close within a second") - } + c0.close(nil) if !c0.isClosed() { t.Fatal("Connection should be closed")