mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 03:47:45 +08:00
fix core package test
This commit is contained in:
parent
f4eb242a4e
commit
ddd2a9aee5
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user