diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 16:40:39 +0100 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-01-06 16:52:35 +0100 |
| commit | 15ed51cf2003f93c29dbb395a62685968311f1c0 (patch) | |
| tree | 231ab5e61e323a5f51e1f0f73dbde70d66fe1d06 | |
| parent | 7b2e07ecbc1e416d35270f790f843ba4d90fa40a (diff) | |
tests: auth_agent_nonblocking should run in nonblocking
| -rw-r--r-- | tests/client/torture_auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 9e3d46f2..d8c74515 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -273,7 +273,6 @@ static void torture_auth_password_nonblocking(void **state) { rc = ssh_connect(session); assert_true(rc == SSH_OK); - ssh_set_blocking(session,0); ssh_set_blocking(session,0); do { @@ -355,6 +354,8 @@ static void torture_auth_agent_nonblocking(void **state) { rc = ssh_userauth_list(session, NULL); assert_true(rc & SSH_AUTH_METHOD_PUBLICKEY); + ssh_set_blocking(session,0); + do { rc = ssh_userauth_agent(session, NULL); } while (rc == SSH_AUTH_AGAIN); |
