mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 12:47:36 +03:00
simplify the Tracer interface by combining the TracerFor... methods
This commit is contained in:
parent
ece3592544
commit
ee24d3899e
32 changed files with 139 additions and 194 deletions
|
@ -33,7 +33,7 @@ var _ = Describe("Bidirectional streams", func() {
|
|||
Versions: []protocol.VersionNumber{version},
|
||||
MaxIncomingStreams: 0,
|
||||
}
|
||||
server, err = quic.ListenAddr("localhost:0", getTLSConfig(), getQuicConfigForServer(qconf))
|
||||
server, err = quic.ListenAddr("localhost:0", getTLSConfig(), getQuicConfig(qconf))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
serverAddr = fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port)
|
||||
})
|
||||
|
@ -100,7 +100,7 @@ var _ = Describe("Bidirectional streams", func() {
|
|||
client, err := quic.DialAddr(
|
||||
serverAddr,
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(qconf),
|
||||
getQuicConfig(qconf),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
runSendingPeer(client)
|
||||
|
@ -118,7 +118,7 @@ var _ = Describe("Bidirectional streams", func() {
|
|||
client, err := quic.DialAddr(
|
||||
serverAddr,
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(qconf),
|
||||
getQuicConfig(qconf),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
runReceivingPeer(client)
|
||||
|
@ -145,7 +145,7 @@ var _ = Describe("Bidirectional streams", func() {
|
|||
client, err := quic.DialAddr(
|
||||
serverAddr,
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(qconf),
|
||||
getQuicConfig(qconf),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
done2 := make(chan struct{})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue