fix lmdb test error on windows

This commit is contained in:
siddontang 2014-11-25 14:52:50 +08:00
parent 14ab146b48
commit a1555c6096
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package ledis
import (
"github.com/siddontang/ledisdb/config"
"os"
"strings"
"testing"
)
@ -201,6 +202,9 @@ func testTx(t *testing.T, name string) {
l, err := Open(cfg)
if err != nil {
if strings.Contains(err.Error(), "not registered") {
return
}
t.Fatal(err)
}