(ctx context.Context, sess *session.Session)
| 362 | } |
| 363 | |
| 364 | func (s *failingStore) UpdateSession(ctx context.Context, sess *session.Session) error { |
| 365 | s.mu.Lock() |
| 366 | fail := s.failUpdate |
| 367 | s.mu.Unlock() |
| 368 | if fail { |
| 369 | return errors.New("synthetic store failure") |
| 370 | } |
| 371 | return s.Store.UpdateSession(ctx, sess) |
| 372 | } |
| 373 | |
| 374 | // When the session store rejects the persistence write, the in-memory |
| 375 | // session and the runtime override must both be rolled back so the next |
nothing calls this directly
no test coverage detected