herald.go/db/db_test.go
Jeffrey Picard 1cccbba7b5 Initial rocksdb commit
Basic reading from rocksdb works
2021-12-06 20:36:12 -05:00

31 lines
444 B
Go

package db
import (
"testing"
)
// TestOpenDB test to see if we can open a db
func TestOpenDB(t *testing.T) {
tests := []struct {
name string
want string
}{
{
name: "Open a rocksdb database",
want: "",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
OpenDB("/mnt/d/data/wallet/lbry-rocksdb/")
got := ""
if got != tt.want {
t.Errorf("got: %s, want: %s\n", got, tt.want)
}
})
}
}