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-dms3
Commits
5ff766be
Commit
5ff766be
authored
Sep 02, 2015
by
Juan Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1626 from ipfs/t0062-cleanup
t0062 cleanup
parents
006cd5fe
3562e72d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
test/sharness/t0062-daemon-api.sh
test/sharness/t0062-daemon-api.sh
+9
-8
No files found.
test/sharness/t0062-daemon-api.sh
View file @
5ff766be
...
...
@@ -12,20 +12,21 @@ test_init_ipfs
differentport
=
$((
PORT_API
+
1
))
api_different
=
"/ip4/127.0.0.1/tcp/
$differentport
"
api_unreachable
=
"/ip4/127.0.0.1/tcp/1"
api_fromcfg
=
$(
ipfs config Addresses.API
)
peerid
=
$(
ipfs config Identity.PeerID
)
test_expect_success
"config setup"
'
api_fromcfg=$(ipfs config Addresses.API) &&
peerid=$(ipfs config Identity.PeerID)
'
test_client
()
{
args
=
"
$@
"
printf
$peerid
>
expected
ipfs
$args
id
-f
=
"<id>"
>
actual
printf
"
$peerid
"
>
expected
&&
ipfs
"
$@
"
id
-f
=
"<id>"
>
actual
&&
test_cmp expected actual
}
test_client_must_fail
()
{
args
=
"
$@
"
echo
"Error: api not running"
>
expected_err
test_must_fail ipfs
$args
id
-f
=
"<id>"
>
actual 2>actual_err
echo
"Error: api not running"
>
expected_err
&&
test_must_fail ipfs
"
$@
"
id
-f
=
"<id>"
>
actual 2>actual_err
&&
test_cmp expected_err actual_err
}
...
...
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