From c1d8f8fc002fe741a7a96f086c4513c11bba9e62 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 15 Aug 2022 14:46:37 +0800 Subject: [PATCH] fix minor unreachable code in testServerResponse Signed-off-by: Abirdcfly --- bfe_http2/server_test.go | 2 +- bfe_spdy/server_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bfe_http2/server_test.go b/bfe_http2/server_test.go index 9030b1e02..36b36b276 100644 --- a/bfe_http2/server_test.go +++ b/bfe_http2/server_test.go @@ -2242,7 +2242,7 @@ func testServerResponse(t testing.TB, select { case <-donec: - return + break case <-time.After(5 * time.Second): t.Fatal("timeout") } diff --git a/bfe_spdy/server_test.go b/bfe_spdy/server_test.go index 3b975f3ea..615d425ca 100644 --- a/bfe_spdy/server_test.go +++ b/bfe_spdy/server_test.go @@ -483,7 +483,7 @@ func testServerResponse(t testing.TB, select { case <-donec: - return + break case <-time.After(10 * time.Second): t.Fatal("timeout") }