tests/port-forwarding: Do not expect the nc will succeed

This commit is contained in:
Jakub Jelen 2018-03-12 15:52:51 +01:00
parent b4cbb0fe23
commit 6b2140deea

View File

@ -67,7 +67,7 @@ forwarding_test() {
rlRun "echo SSH_PID is '$SSH_PID'" rlRun "echo SSH_PID is '$SSH_PID'"
rlWaitForSocket $FORWARDED -t $TIMEOUT rlWaitForSocket $FORWARDED -t $TIMEOUT
rlRun "[[ -n '$SSH_PID' ]] && ps -fp $SSH_PID" rlRun "[[ -n '$SSH_PID' ]] && ps -fp $SSH_PID"
rlRun "echo '$MESSAGE'|nc localhost $FORWARDED" rlRun "echo '$MESSAGE'|nc localhost $FORWARDED" 0,1
if [[ $EXP_RESULT == "success" ]]; then if [[ $EXP_RESULT == "success" ]]; then
rlAssertGrep "$MESSAGE" listen.log rlAssertGrep "$MESSAGE" listen.log