Skip to content

Commit 89926ce

Browse files
AbirdcflySong Jian
authored andcommitted
Fix some unreachable code in unit tests (#1068)
Signed-off-by: Abirdcfly <[email protected]> Signed-off-by: Song Jian <[email protected]>
1 parent d333a43 commit 89926ce

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

bfe_basic/condition/primitive_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ func TestContextValueFetcher(t *testing.T) {
234234
contextVal, err := hf.Fetch(req)
235235
if err != nil {
236236
t.Fatalf("Fetch(): %v", err)
237-
t.FailNow()
238237
}
239238

240239
// check

bfe_http2/server_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,6 @@ func TestNoRstPostAfterGOAWAY(t *testing.T) {
30003000
}
30013001
if gf, ok := f.(*RSTStreamFrame); ok && gf.StreamID == 1 {
30023002
t.Fatal("got rst but want no ret")
3003-
break
30043003
}
30053004
}
30063005

0 commit comments

Comments
 (0)