forked from grassrootseconomics/visedriver
Rehabilitate http server test
This commit is contained in:
parent
977d14c529
commit
dff662663d
@ -99,7 +99,7 @@ func TestSessionHandler_ServeHTTP(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
sessionHandler := &SessionHandler{
|
sessionHandler := &HTTPSessionHandler{
|
||||||
RequestHandler: mockRequestHandler,
|
RequestHandler: mockRequestHandler,
|
||||||
}
|
}
|
||||||
//sessionHandler := request.ToSessionHandler(mockRequestHandler)
|
//sessionHandler := request.ToSessionHandler(mockRequestHandler)
|
||||||
@ -120,7 +120,7 @@ func TestSessionHandler_ServeHTTP(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestSessionHandler_WriteError(t *testing.T) {
|
func TestSessionHandler_WriteError(t *testing.T) {
|
||||||
handler := &SessionHandler{}
|
handler := &HTTPSessionHandler{}
|
||||||
mockWriter := &httpmocks.MockWriter{}
|
mockWriter := &httpmocks.MockWriter{}
|
||||||
err := errors.New("test error")
|
err := errors.New("test error")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user