Skip to content

Commit

Permalink
Fix some unreachable code in unit tests (bfenetworks#1068)
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly authored and supermario1990 committed Dec 8, 2023
1 parent 58f7c51 commit 8f0a36a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion bfe_basic/condition/primitive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion bfe_http2/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 8f0a36a

Please sign in to comment.