Unverified 提交 3106135d 作者: Whyrusleeping 提交者: GitHub

Merge pull request #4662 from ipfs/fix/freebsd-tests

Fix some tests on FreeBSD
...@@ -75,7 +75,7 @@ func TestManageFdLimitWithEnvSet(t *testing.T) { ...@@ -75,7 +75,7 @@ func TestManageFdLimitWithEnvSet(t *testing.T) {
} }
setMaxFds() setMaxFds()
if maxFds != value { if maxFds != uint64(value) {
t.Errorf("The maxfds is not set from IPFS_FD_MAX") t.Errorf("The maxfds is not set from IPFS_FD_MAX")
} }
......
...@@ -12,7 +12,7 @@ test_init_ipfs ...@@ -12,7 +12,7 @@ test_init_ipfs
sort_rand() { sort_rand() {
case `uname` in case `uname` in
Linux) Linux|FreeBSD)
sort -R sort -R
;; ;;
Darwin) Darwin)
...@@ -32,7 +32,7 @@ check_random_corruption() { ...@@ -32,7 +32,7 @@ check_random_corruption() {
' '
test_expect_success "repo verify detects failure" ' test_expect_success "repo verify detects failure" '
test_expect_code 1 ipfs repo verify test_expect_code 1 ipfs repo verify
' '
test_expect_success "replace the object" ' test_expect_success "replace the object" '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论