use a callback to pass handshake errors to the session

This commit is contained in:
Marten Seemann
2019-05-31 14:13:34 +08:00
parent ed69ae2ce0
commit 743868159f
6 changed files with 66 additions and 57 deletions

View File

@@ -150,11 +150,9 @@ func (mr *MockCryptoSetupMockRecorder) Received1RTTAck() *gomock.Call {
}
// RunHandshake mocks base method
func (m *MockCryptoSetup) RunHandshake() error {
func (m *MockCryptoSetup) RunHandshake() {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RunHandshake")
ret0, _ := ret[0].(error)
return ret0
m.ctrl.Call(m, "RunHandshake")
}
// RunHandshake indicates an expected call of RunHandshake