forked from quic-go/quic-go
add a command line option to export qlogs from the integration tests
This commit is contained in:
@@ -24,7 +24,7 @@ var _ = Describe("Stateless Resets", func() {
|
||||
It(fmt.Sprintf("sends and recognizes stateless resets, for %d byte connection IDs", connIDLen), func() {
|
||||
statelessResetKey := make([]byte, 32)
|
||||
rand.Read(statelessResetKey)
|
||||
serverConfig := &quic.Config{StatelessResetKey: statelessResetKey}
|
||||
serverConfig := getQuicConfigForServer(&quic.Config{StatelessResetKey: statelessResetKey})
|
||||
|
||||
ln, err := quic.ListenAddr("localhost:0", getTLSConfig(), serverConfig)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
@@ -58,10 +58,10 @@ var _ = Describe("Stateless Resets", func() {
|
||||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", proxy.LocalPort()),
|
||||
getTLSClientConfig(),
|
||||
&quic.Config{
|
||||
getQuicConfigForClient(&quic.Config{
|
||||
ConnectionIDLength: connIDLen,
|
||||
MaxIdleTimeout: 2 * time.Second,
|
||||
},
|
||||
}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
str, err := sess.AcceptStream(context.Background())
|
||||
|
||||
Reference in New Issue
Block a user