fix core package test

This commit is contained in:
Jeromy 2014-08-30 12:54:59 -07:00
parent f4eb242a4e
commit ddd2a9aee5

View File

@ -1,8 +1,9 @@
package core
import (
config "github.com/jbenet/go-ipfs/config"
"testing"
config "github.com/jbenet/go-ipfs/config"
)
func TestDatastores(t *testing.T) {
@ -20,14 +21,14 @@ func TestDatastores(t *testing.T) {
}
for i, c := range good {
n, err := NewIpfsNode(c)
n, err := NewIpfsNode(c, false)
if n == nil || err != nil {
t.Error("Should have constructed.", i, err)
}
}
for i, c := range bad {
n, err := NewIpfsNode(c)
n, err := NewIpfsNode(c, false)
if n != nil || err == nil {
t.Error("Should have failed to construct.", i)
}