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
|
@ -28,7 +28,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
runServer := func() <-chan int32 {
|
||||
numCanceledStreamsChan := make(chan int32)
|
||||
var err error
|
||||
server, err = quic.ListenAddr("localhost:0", getTLSConfig(), getQuicConfigForServer(nil))
|
||||
server, err = quic.ListenAddr("localhost:0", getTLSConfig(), getQuicConfig(nil))
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
var canceledCounter int32
|
||||
|
@ -71,7 +71,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -115,7 +115,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -163,7 +163,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -302,7 +302,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -381,7 +381,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 2}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -456,7 +456,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: numStreams / 3}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: numStreams / 3}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
@ -539,7 +539,7 @@ var _ = Describe("Stream Cancelations", func() {
|
|||
sess, err := quic.DialAddr(
|
||||
fmt.Sprintf("localhost:%d", server.Addr().(*net.UDPAddr).Port),
|
||||
getTLSClientConfig(),
|
||||
getQuicConfigForClient(&quic.Config{MaxIncomingUniStreams: 5}),
|
||||
getQuicConfig(&quic.Config{MaxIncomingUniStreams: 5}),
|
||||
)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue