Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
ddd2a9ae
Commit
ddd2a9ae
authored
Aug 30, 2014
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix core package test
parent
f4eb242a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
core/core_test.go
core/core_test.go
+4
-3
No files found.
core/core_test.go
View file @
ddd2a9ae
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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment