Rehabilitate http server test

This commit is contained in:
lash 2025-01-11 08:37:10 +00:00
parent 977d14c529
commit dff662663d
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -99,7 +99,7 @@ func TestSessionHandler_ServeHTTP(t *testing.T) {
},
}
sessionHandler := &SessionHandler{
sessionHandler := &HTTPSessionHandler{
RequestHandler: mockRequestHandler,
}
//sessionHandler := request.ToSessionHandler(mockRequestHandler)
@ -120,7 +120,7 @@ func TestSessionHandler_ServeHTTP(t *testing.T) {
}
func TestSessionHandler_WriteError(t *testing.T) {
handler := &SessionHandler{}
handler := &HTTPSessionHandler{}
mockWriter := &httpmocks.MockWriter{}
err := errors.New("test error")