Fix auth bug

This commit is contained in:
Ben Toogood
2020-05-13 16:49:17 +01:00
parent c831b6c03a
commit 410fec8ee4
3 changed files with 17 additions and 9 deletions

View File

@@ -134,7 +134,6 @@ func (m *memoryStore) Close() error {
}
func (m *memoryStore) Init(opts ...store.Option) error {
m.store.Flush()
for _, o := range opts {
o(&m.options)
}

View File

@@ -248,7 +248,7 @@ func basictest(s store.Store, t *testing.T) {
}
}
s.Init()
s.Close() // reset the store
for i := 0; i < 10; i++ {
s.Write(&store.Record{
Key: fmt.Sprintf("a%d", i),