forked from mirror/ledisdb
fix lmdb test error on windows
This commit is contained in:
parent
14ab146b48
commit
a1555c6096
|
@ -3,6 +3,7 @@ package ledis
|
||||||
import (
|
import (
|
||||||
"github.com/siddontang/ledisdb/config"
|
"github.com/siddontang/ledisdb/config"
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -201,6 +202,9 @@ func testTx(t *testing.T, name string) {
|
||||||
|
|
||||||
l, err := Open(cfg)
|
l, err := Open(cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if strings.Contains(err.Error(), "not registered") {
|
||||||
|
return
|
||||||
|
}
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue