From 89926ce3ff486093262afdbe38c1adfc22c08227 Mon Sep 17 00:00:00 2001 From: Abirdcfly Date: Mon, 22 Aug 2022 12:37:27 +0800 Subject: [PATCH] Fix some unreachable code in unit tests (#1068) Signed-off-by: Abirdcfly Signed-off-by: Song Jian --- bfe_basic/condition/primitive_test.go | 1 - bfe_http2/server_test.go | 1 - 2 files changed, 2 deletions(-) diff --git a/bfe_basic/condition/primitive_test.go b/bfe_basic/condition/primitive_test.go index 8ee6a9da..5144512a 100644 --- a/bfe_basic/condition/primitive_test.go +++ b/bfe_basic/condition/primitive_test.go @@ -234,7 +234,6 @@ func TestContextValueFetcher(t *testing.T) { contextVal, err := hf.Fetch(req) if err != nil { t.Fatalf("Fetch(): %v", err) - t.FailNow() } // check diff --git a/bfe_http2/server_test.go b/bfe_http2/server_test.go index 9030b1e0..09c7a44f 100644 --- a/bfe_http2/server_test.go +++ b/bfe_http2/server_test.go @@ -3000,7 +3000,6 @@ func TestNoRstPostAfterGOAWAY(t *testing.T) { } if gf, ok := f.(*RSTStreamFrame); ok && gf.StreamID == 1 { t.Fatal("got rst but want no ret") - break } }