Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
aranjans authored May 16, 2024
1 parent f06e723 commit 7aec801
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions test/goaway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -810,28 +810,6 @@ func (s) TestClientSendsAGoAway(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
defer cancel()

//go func() {
// for {
// f, err := ct.fr.ReadFrame()
// if err != nil {
// errCh <- fmt.Errorf("error reading frame: %v", err)
// return
// }
// switch fr := f.(type) {
// case *http2.GoAwayFrame:
// fr = f.(*http2.GoAwayFrame)
// if fr.ErrCode == http2.ErrCodeNo {
// t.Logf("GoAway received from client")
// close(goAwayReceived)
// return
// }
// default:
// t.Errorf("server tester received unexpected frame type %T", f)
// errCh <- fmt.Errorf("server tester received unexpected frame type %T", f)
// close(errCh)
// }
// }
//}()
cc.WaitForStateChange(ctx, connectivity.Connecting)
cc.Close()
select {
Expand Down

0 comments on commit 7aec801

Please sign in to comment.