aboutsummaryrefslogtreecommitdiff
path: root/tests/client/torture_forward.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-10-20 13:23:31 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-10-20 17:06:21 +0200
commite0adcea90dceafa81e1a20c8bb321182690e28d2 (patch)
tree771e36434910c2c8a805b8337b7ad36da44f5f1b /tests/client/torture_forward.c
parenta62399fcd52b1c5bdd0c0bf3c30ee39e732129f5 (diff)
downloadlibssh-e0adcea90dceafa81e1a20c8bb321182690e28d2.tar.gz
libssh-e0adcea90dceafa81e1a20c8bb321182690e28d2.tar.xz
libssh-e0adcea90dceafa81e1a20c8bb321182690e28d2.zip
tests: Fix torture_forward.
Diffstat (limited to 'tests/client/torture_forward.c')
-rw-r--r--tests/client/torture_forward.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/client/torture_forward.c b/tests/client/torture_forward.c
index 377e947d..746199b8 100644
--- a/tests/client/torture_forward.c
+++ b/tests/client/torture_forward.c
@@ -64,12 +64,13 @@ static void torture_ssh_forward(void **state)
int bound_port;
int rc;
- rc = ssh_forward_listen(session, "127.0.0.1", 23424, &bound_port);
+ rc = ssh_forward_listen(session, "127.0.0.1", 8080, &bound_port);
assert_int_equal(rc, SSH_OK);
- c = ssh_forward_accept(session, 50);
- assert_null(c);
+ c = ssh_forward_accept(session, 1000);
+ assert_non_null(c);
+ ssh_channel_send_eof(c);
ssh_channel_close(c);
}