boltdb: it works!
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
"fiatjaf.com/nostr"
|
||||
"fiatjaf.com/nostr/eventstore"
|
||||
"fiatjaf.com/nostr/eventstore/boltdb"
|
||||
"fiatjaf.com/nostr/eventstore/lmdb"
|
||||
"fiatjaf.com/nostr/eventstore/mmm"
|
||||
"fiatjaf.com/nostr/eventstore/slicestore"
|
||||
@@ -46,6 +47,13 @@ func TestLMDB(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestBoltDB(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
os.RemoveAll(dbpath + "boltdb")
|
||||
t.Run(test.name, func(t *testing.T) { test.run(t, &boltdb.BoltBackend{Path: dbpath + "boltdb"}) })
|
||||
}
|
||||
}
|
||||
|
||||
func TestMMM(t *testing.T) {
|
||||
for _, test := range tests {
|
||||
os.RemoveAll(dbpath + "mmm")
|
||||
|
||||
Reference in New Issue
Block a user