get rid of badger everywhere, including as an sdk/hints backend.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"fiatjaf.com/nostr/sdk/hints/badgerh"
|
||||
)
|
||||
|
||||
func TestBadgerHints(t *testing.T) {
|
||||
path := "/tmp/tmpsdkhintsbadger"
|
||||
os.RemoveAll(path)
|
||||
|
||||
hdb, err := badgerh.NewBadgerHints(path)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer hdb.Close()
|
||||
|
||||
runTestWith(t, hdb)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"fiatjaf.com/nostr/sdk/hints/bbolth"
|
||||
)
|
||||
|
||||
func TestBoltHints(t *testing.T) {
|
||||
path := "/tmp/tmpsdkhintsbbolt"
|
||||
os.RemoveAll(path)
|
||||
|
||||
hdb, err := bbolth.NewBoltHints(path)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer hdb.Close()
|
||||
|
||||
runTestWith(t, hdb)
|
||||
}
|
||||
Reference in New Issue
Block a user