File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -800,6 +800,7 @@ func (s) TestClientSendsAGoAway(t *testing.T) {
800
800
for {
801
801
f , err := ct .fr .ReadFrame ()
802
802
if err != nil {
803
+ t .Fatalf ("error reading frame: %v" , err )
803
804
return
804
805
}
805
806
switch fr := f .(type ) {
@@ -808,6 +809,7 @@ func (s) TestClientSendsAGoAway(t *testing.T) {
808
809
if fr .ErrCode == http2 .ErrCodeNo {
809
810
t .Logf ("GoAway received from client" )
810
811
close (goAwayReceived )
812
+ return
811
813
}
812
814
default :
813
815
t .Errorf ("server tester received unexpected frame type %T" , f )
@@ -816,6 +818,7 @@ func (s) TestClientSendsAGoAway(t *testing.T) {
816
818
}
817
819
}
818
820
}()
821
+ cc .WaitForStateChange (ctx , connectivity .Connecting )
819
822
cc .Close ()
820
823
defer ct .conn .Close ()
821
824
select {
You can’t perform that action at this time.
0 commit comments