send a NEW_TOKEN from after completing the handshake (as a server)

This commit is contained in:
Marten Seemann 2019-06-01 17:12:54 +08:00
parent 7c7bcede6c
commit 34543848f0
9 changed files with 97 additions and 29 deletions

View file

@ -77,8 +77,9 @@ var _ = Describe("Session", func() {
sessionRunner = NewMockSessionRunner(mockCtrl)
mconn = newMockConnection()
tokenGenerator, err := handshake.NewTokenGenerator()
Expect(err).ToNot(HaveOccurred())
var pSess Session
var err error
pSess, err = newSession(
mconn,
sessionRunner,
@ -88,6 +89,7 @@ var _ = Describe("Session", func() {
populateServerConfig(&Config{}),
nil, // tls.Config
&handshake.TransportParameters{},
tokenGenerator,
utils.DefaultLogger,
protocol.VersionTLS,
)