提交 4bf3e967 作者: Juan Batiz-Benet

test/t0040-add-and-cat updated hashes (new random)

上级 842de46c
...@@ -47,7 +47,7 @@ test_expect_success "generate 100MB file using go-random" ' ...@@ -47,7 +47,7 @@ test_expect_success "generate 100MB file using go-random" '
' '
test_expect_success "sha1 of the file looks ok" ' test_expect_success "sha1 of the file looks ok" '
echo "54dc0dbbc353b2ffb745285793f89af0c9d98449 mountdir/bigfile" >sha1_expected && echo "ae986dd159e4f014aee7409cdc2001ea74f618d1 mountdir/bigfile" >sha1_expected &&
shasum mountdir/bigfile >sha1_actual && shasum mountdir/bigfile >sha1_actual &&
test_cmp sha1_expected sha1_actual test_cmp sha1_expected sha1_actual
' '
...@@ -57,7 +57,7 @@ test_expect_success "ipfs add bigfile succeeds" ' ...@@ -57,7 +57,7 @@ test_expect_success "ipfs add bigfile succeeds" '
' '
test_expect_success "ipfs add bigfile output looks good" ' test_expect_success "ipfs add bigfile output looks good" '
HASH="QmeZVkWkDu4W1vxWdDgUbqKYba9K3u45hJEdPA4Wr2sHZz" && HASH="QmVm3Da371opC3hpsCLuYSozdyM6wRvu9UoUqoyW8u4LRq" &&
echo "added $HASH $(pwd)/mountdir/bigfile" >expected && echo "added $HASH $(pwd)/mountdir/bigfile" >expected &&
test_cmp expected actual test_cmp expected actual
' '
...@@ -67,7 +67,7 @@ test_expect_success "ipfs cat succeeds" ' ...@@ -67,7 +67,7 @@ test_expect_success "ipfs cat succeeds" '
' '
test_expect_success "ipfs cat output looks good" ' test_expect_success "ipfs cat output looks good" '
echo "54dc0dbbc353b2ffb745285793f89af0c9d98449 -" >sha1_expected && echo "ae986dd159e4f014aee7409cdc2001ea74f618d1 -" >sha1_expected &&
test_cmp sha1_expected sha1_actual test_cmp sha1_expected sha1_actual
' '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论