From a1555c60962b7b31f9de2592db4342b433d9576b Mon Sep 17 00:00:00 2001 From: siddontang Date: Tue, 25 Nov 2014 14:52:50 +0800 Subject: [PATCH] fix lmdb test error on windows --- ledis/tx_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ledis/tx_test.go b/ledis/tx_test.go index 26888b5..ba15a1c 100644 --- a/ledis/tx_test.go +++ b/ledis/tx_test.go @@ -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) }