Fix auth bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
@@ -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),
|
||||
|
Reference in New Issue
Block a user