Commit ddd2a9ae authored by Jeromy's avatar Jeromy

fix core package test

parent f4eb242a
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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment