提交 e7756e45 作者: Travis Person

Problem with initializing daemon on same port

At this point I think this test should be moved out of this file
上级 cca5212e
...@@ -44,13 +44,14 @@ test_expect_success "ipfs init output looks good" ' ...@@ -44,13 +44,14 @@ test_expect_success "ipfs init output looks good" '
test_cmp expected actual_init test_cmp expected actual_init
' '
test_init_ipfs
test_launch_ipfs_daemon test_launch_ipfs_daemon
test_expect_failure "ipfs init should not run while daemon is running" ' test_expect_failure "ipfs init should not run while daemon is running" '
ipfs init 2> daemon_running_output ipfs init 2> daemon_running_err &&
echo "Error: ipfs daemon is running. please stop it to run this command" > daemon_running_expected expect="Error: ipfs daemon is running. please stop it to run this command" &&
echo "Use \'ipfs init --help\' for information about this command" >> daemon_running_expected cat daemon_running_err | grep $expect
test_cmp daemon_running_expected daemon_running_output
' '
test_kill_ipfs_daemon test_kill_ipfs_daemon
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论