accept 0-RTT request in the http3 server

This commit is contained in:
Marten Seemann
2020-01-26 11:53:51 +07:00
parent 91543322f6
commit 950f278362
2 changed files with 2 additions and 7 deletions

View File

@@ -172,9 +172,6 @@ var _ = Describe("Server", func() {
sess = mockquic.NewMockEarlySession(mockCtrl)
controlStr := mockquic.NewMockStream(mockCtrl)
controlStr.EXPECT().Write(gomock.Any())
ctx, cancel := context.WithCancel(context.Background())
cancel()
sess.EXPECT().HandshakeComplete().Return(ctx)
sess.EXPECT().OpenUniStream().Return(controlStr, nil)
sess.EXPECT().AcceptStream(gomock.Any()).Return(str, nil)
sess.EXPECT().AcceptStream(gomock.Any()).Return(nil, errors.New("done"))