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
dba455a5
Commit
dba455a5
authored
9 years ago
by
Henry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sharness/t0060-daemon: don't reuse expect/actual names
parent
b3e73c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+13
-12
No files found.
test/sharness/t0060-daemon.sh
View file @
dba455a5
...
...
@@ -14,6 +14,7 @@ test_expect_success "setup IPFS_PATH" '
'
# NOTE: this should remove bootstrap peers (needs a flag)
# TODO(cryptix): also default ports - might clash with local clients, failure in that case isn't clear because pollEndpoint just passes too
test_expect_success
"ipfs daemon --init launches"
'
ipfs daemon --init >actual_daemon 2>daemon_err &
'
...
...
@@ -28,9 +29,9 @@ test_expect_success "initialization ended" '
# this is lifted straight from t0020-init.sh
test_expect_success
"ipfs peer id looks good"
'
PEERID=$(ipfs config Identity.PeerID) &&
echo $PEERID | tr -dC "[:alnum:]" | wc -c | tr -d " " >actual &&
echo "46" >expected &&
test_cmp_repeat_10_sec expected actual
echo $PEERID | tr -dC "[:alnum:]" | wc -c | tr -d " " >actual
_id
&&
echo "46" >expected
_id
&&
test_cmp_repeat_10_sec expected
_id
actual
_id
'
# This is like t0020-init.sh "ipfs init output looks good"
...
...
@@ -43,15 +44,15 @@ test_expect_success "ipfs peer id looks good" '
#
test_expect_failure
"ipfs daemon output looks good"
'
STARTFILE="ipfs cat /ipfs/$HASH_WELCOME_DOCS/readme" &&
echo "Initializing daemon..." >expected &&
echo "initializing ipfs node at $IPFS_PATH" >>expected &&
echo "generating
4096
-bit RSA keypair...done" >>expected &&
echo "peer identity: $PEERID" >>expected &&
echo "to get started, enter:" >>expected &&
printf "\\n\\t$STARTFILE\\n\\n" >>expected &&
echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected &&
echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected &&
test_cmp_repeat_10_sec expected actual_daemon
echo "Initializing daemon..." >expected
_daemon
&&
echo "initializing ipfs node at $IPFS_PATH" >>expected
_daemon
&&
echo "generating
2048
-bit RSA keypair...done" >>expected
_daemon
&&
echo "peer identity: $PEERID" >>expected
_daemon
&&
echo "to get started, enter:" >>expected
_daemon
&&
printf "\\n\\t$STARTFILE\\n\\n" >>expected
_daemon
&&
echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected
_daemon
&&
echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected
_daemon
&&
test_cmp_repeat_10_sec expected
_daemon
actual_daemon
'
test_expect_success
".ipfs/ has been created"
'
...
...
This diff is collapsed.
Click to expand it.
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