Skip to content

Commit

Permalink
Fix some unreachable code in unit tests (#1068)
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly authored Aug 22, 2022
1 parent 4f81511 commit 21a14e7
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 21a14e7

Please sign in to comment.