use consistent version numbers in client test

This commit is contained in:
Marten Seemann 2020-11-11 16:58:23 +07:00
parent d0cdfc8926
commit 78e9a3bcad

View file

@ -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,