mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-09-10 05:04:53 -04:00

* fix(lib/store/bbolt): use a multi-bucket flow instead of a single bucket flow Signed-off-by: Xe Iaso <me@xeiaso.net> * Update metadata check-spelling run (push) for Xe/optimize-bbolt Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com> on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev> * fix(lib/store/bbolt): gracefully handle the obsolete anubis bucket in cleanup Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
23 lines
355 B
Go
23 lines
355 B
Go
package bbolt
|
|
|
|
import (
|
|
"encoding/json"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/TecharoHQ/anubis/lib/store/storetest"
|
|
)
|
|
|
|
func TestImpl(t *testing.T) {
|
|
path := filepath.Join(t.TempDir(), "db")
|
|
t.Log(path)
|
|
data, err := json.Marshal(Config{
|
|
Path: path,
|
|
})
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
storetest.Common(t, Factory{}, json.RawMessage(data))
|
|
}
|