summaryrefslogtreecommitdiff
path: root/tests/all/agent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/all/agent.rs')
-rw-r--r--tests/all/agent.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/all/agent.rs b/tests/all/agent.rs
index 8feee06..b3a7963 100644
--- a/tests/all/agent.rs
+++ b/tests/all/agent.rs
@@ -7,9 +7,8 @@ fn smoke() {
agent.connect().unwrap();
agent.list_identities().unwrap();
{
- let mut a = agent.identities();
- let i1 = a.next().unwrap().unwrap();
- a.count();
+ let a = agent.identities().unwrap();
+ let i1 = &a[0];
assert!(agent.userauth("foo", &i1).is_err());
}
agent.disconnect().unwrap();