mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 20:57:36 +03:00
use consistent version numbers in client test
This commit is contained in:
parent
d0cdfc8926
commit
78e9a3bcad
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ var _ = Describe("Client", func() {
|
||||||
tracer = mocklogging.NewMockConnectionTracer(mockCtrl)
|
tracer = mocklogging.NewMockConnectionTracer(mockCtrl)
|
||||||
tr := mocklogging.NewMockTracer(mockCtrl)
|
tr := mocklogging.NewMockTracer(mockCtrl)
|
||||||
tr.EXPECT().TracerForConnection(protocol.PerspectiveClient, gomock.Any()).Return(tracer).MaxTimes(1)
|
tr.EXPECT().TracerForConnection(protocol.PerspectiveClient, gomock.Any()).Return(tracer).MaxTimes(1)
|
||||||
config = &Config{Tracer: tr}
|
config = &Config{Tracer: tr, Versions: []protocol.VersionNumber{protocol.VersionTLS}}
|
||||||
Eventually(areSessionsRunning).Should(BeFalse())
|
Eventually(areSessionsRunning).Should(BeFalse())
|
||||||
// sess = NewMockQuicSession(mockCtrl)
|
// sess = NewMockQuicSession(mockCtrl)
|
||||||
addr = &net.UDPAddr{IP: net.IPv4(192, 168, 100, 200), Port: 1337}
|
addr = &net.UDPAddr{IP: net.IPv4(192, 168, 100, 200), Port: 1337}
|
||||||
|
@ -65,7 +65,7 @@ var _ = Describe("Client", func() {
|
||||||
cl = &client{
|
cl = &client{
|
||||||
srcConnID: connID,
|
srcConnID: connID,
|
||||||
destConnID: connID,
|
destConnID: connID,
|
||||||
version: protocol.SupportedVersions[0],
|
version: protocol.VersionTLS,
|
||||||
conn: newSendConn(packetConn, addr),
|
conn: newSendConn(packetConn, addr),
|
||||||
tracer: tracer,
|
tracer: tracer,
|
||||||
logger: utils.DefaultLogger,
|
logger: utils.DefaultLogger,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue