diff options
author | EuAndreh <eu@euandre.org> | 2023-03-31 19:30:04 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-31 19:30:04 -0300 |
commit | b09bc7de637f2e0607440e3e006c43c2f31cd3cc (patch) | |
tree | a5c7e85e2b980e26052dd0a793ee1fa9361daed0 /tests/ranking.sh | |
parent | tests/ranking.sh: Uncomment "$ERR" output (diff) | |
download | remembering-b09bc7de637f2e0607440e3e006c43c2f31cd3cc.tar.gz remembering-b09bc7de637f2e0607440e3e006c43c2f31cd3cc.tar.xz |
tests/ranking.sh: Pick last value to prevent broken pipes
Diffstat (limited to '')
-rwxr-xr-x | tests/ranking.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/ranking.sh b/tests/ranking.sh index 5b8564e..af26c94 100755 --- a/tests/ranking.sh +++ b/tests/ranking.sh @@ -335,18 +335,19 @@ d e f' test_really_long_list() { testing 'really long list' N="$LINENO" - OUT="$(mktemp)" - ERR="$(mktemp)" + OUT="$(mkstemp)" + ERR="$(mkstemp)" PROFILE="really-long-list-$(uuid)" - seq 999999 | \ + N=999999 + seq "$N" | \ ./src/remembering \ -p "$PROFILE" \ - -- head -n1 \ + -- tail -n1 \ 1>"$OUT" 2>"$ERR" STATUS=$? assert_status 0 assert_empty_stderr - assert_stdout '1' + assert_stdout "$N" test_ok } |