mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
add a command line option to export qlogs from the integration tests
This commit is contained in:
parent
3ea4a66d63
commit
a5b967a309
17 changed files with 137 additions and 105 deletions
|
@ -57,7 +57,7 @@ var _ = Describe("Handshake tests", func() {
|
|||
BeforeEach(func() {
|
||||
server = nil
|
||||
acceptStopped = make(chan struct{})
|
||||
serverConfig = &quic.Config{}
|
||||
serverConfig = getQuicConfigForServer(nil)
|
||||
tlsServerConf = getTLSConfig()
|
||||
})
|
||||
|
||||
|
@ -121,13 +121,12 @@ var _ = Describe("Handshake tests", func() {
|
|||
serverConfig.Versions = supportedVersions
|
||||
server := runServer()
|
||||
defer server.Close()
|
||||
conf := &quic.Config{
|
||||
Versions: []protocol.VersionNumber{7, 8, 9, protocol.SupportedVersions[0], 10},
|
||||
}
|
||||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
conf,
|
||||
getQuicConfigForClient(&quic.Config{
|
||||
Versions: []protocol.VersionNumber{7, 8, 9, protocol.SupportedVersions[0], 10},
|
||||
}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(sess.(versioner).GetVersion()).To(Equal(protocol.SupportedVersions[0]))
|
||||
|
@ -187,9 +186,7 @@ var _ = Describe("Handshake tests", func() {
|
|||
|
||||
BeforeEach(func() {
|
||||
serverConfig.Versions = []protocol.VersionNumber{version}
|
||||
clientConfig = &quic.Config{
|
||||
Versions: []protocol.VersionNumber{version},
|
||||
}
|
||||
clientConfig = getQuicConfigForClient(&quic.Config{Versions: []protocol.VersionNumber{version}})
|
||||
})
|
||||
|
||||
JustBeforeEach(func() {
|
||||
|
@ -421,7 +418,7 @@ var _ = Describe("Handshake tests", func() {
|
|||
gets := make(chan string, 100)
|
||||
puts := make(chan string, 100)
|
||||
tokenStore := newTokenStore(gets, puts)
|
||||
quicConf := &quic.Config{TokenStore: tokenStore}
|
||||
quicConf := getQuicConfigForClient(&quic.Config{TokenStore: tokenStore})
|
||||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue