Skip to content

Commit

Permalink
discard stdin from test
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Dec 6, 2023
1 parent f2a4f04 commit 85f2497
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/wolfsshd/test/sshd_login_grace_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ if [ "$RESULT" != 0 ]; then
exit 1
fi

# attempt clearing out stdin from previous echo/grep
read -t 1 -n 1000 discard

# test grace login timeout by stalling on password prompt
timeout --foreground 7 "$TEST_CLIENT" -u "$USER" -h "$TEST_HOST" -p "$TEST_PORT" -t

Expand Down

0 comments on commit 85f2497

Please sign in to comment.