forked from quic-go/quic-go
fix flaky TestALPN integration test (#4909)
This commit is contained in:
@@ -409,7 +409,6 @@ func TestALPN(t *testing.T) {
|
|||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
cs := conn.ConnectionState()
|
cs := conn.ConnectionState()
|
||||||
require.Equal(t, alpn, cs.TLS.NegotiatedProtocol)
|
require.Equal(t, alpn, cs.TLS.NegotiatedProtocol)
|
||||||
require.NoError(t, conn.CloseWithError(0, ""))
|
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case c := <-acceptChan:
|
case c := <-acceptChan:
|
||||||
@@ -417,6 +416,7 @@ func TestALPN(t *testing.T) {
|
|||||||
case <-time.After(time.Second):
|
case <-time.After(time.Second):
|
||||||
t.Fatal("timeout waiting for server connection")
|
t.Fatal("timeout waiting for server connection")
|
||||||
}
|
}
|
||||||
|
require.NoError(t, conn.CloseWithError(0, ""))
|
||||||
|
|
||||||
// now try with a different ALPN
|
// now try with a different ALPN
|
||||||
tlsConf := getTLSClientConfig()
|
tlsConf := getTLSClientConfig()
|
||||||
|
|||||||
Reference in New Issue
Block a user