Skip to content

Commit

Permalink
add fuzz to repo size test
Browse files Browse the repository at this point in the history
We appear to be writing to leveldb on each command.

fixes #4408

License: MIT
Signed-off-by: Steven Allen <[email protected]>
  • Loading branch information
Stebalien committed Nov 30, 2017
1 parent a81025f commit 0aaeabf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sharness/t0088-repo-stat-symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ test_expect_success "'ipfs repo stat' RepoSize is correct with sym link" '
export IPFS_PATH=".ipfs" &&
reposize_symlink=$(ipfs repo stat | grep RepoSize | awk '\''{ print $2 }'\'') &&
echo "reposize_symlink: $reposize_symlink; reposize_direct: $reposize_direct" &&
test $reposize_symlink -ge $reposize_direct
reposize_diff="$(( $reposize_symlink - $reposize_direct ))" &&
test "${reposize_diff#-}" -lt 2048 # less than 2k diff
'

test_done

0 comments on commit 0aaeabf

Please sign in to comment.