Skip to content

Commit 9dc8f77

Browse files
committed
Add DeleteAllSession to mock
1 parent 4d85b23 commit 9dc8f77

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

client_state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func (c ClientStateResponseWriter) Header() http.Header {
205205
return c.ResponseWriter.Header()
206206
}
207207

208-
// Hijack implements the http.Hijacker interface by calling the
208+
// Hijack implements the http.Hijacker interface by calling the
209209
// underlying implementation if available.
210210
func (c ClientStateResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
211211
h, ok := c.ResponseWriter.(http.Hijacker)

mocks/mocks.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ func (c *ClientStateRW) WriteState(w http.ResponseWriter, cstate authboss.Client
415415
c.ClientValues[e.Key] = e.Value
416416
case authboss.ClientStateEventDel:
417417
delete(c.ClientValues, e.Key)
418+
case authboss.ClientStateEventDelAll:
419+
c.ClientValues = make(map[string]string)
418420
}
419421
}
420422

0 commit comments

Comments
 (0)