(keys []string)
| 82 | } |
| 83 | |
| 84 | func (c *mockMemcacheFailing) GetMulti(keys []string) (map[string]*memcache.Item, error) { |
| 85 | calls := c.calls.Inc() |
| 86 | if calls%3 == 0 { |
| 87 | return nil, errors.New("fail") |
| 88 | } |
| 89 | |
| 90 | return c.mockMemcache.GetMulti(keys) |
| 91 | } |
| 92 | |
| 93 | func TestMemcacheFailure(t *testing.T) { |
| 94 | t.Run("unbatched", func(t *testing.T) { |