1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

tests: auth_agent_nonblocking should run in nonblocking

This commit is contained in:
Aris Adamantiadis
2014-01-06 16:40:39 +01:00
parent 7b2e07ecbc
commit 15ed51cf20

View File

@@ -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);