Skip to content

Fix spurious failures in the ssh_identities test - #35

Merged
emilyalbini merged 1 commit into
mainfrom
ea-fix-ssh
Aug 11, 2026
Merged

Fix spurious failures in the ssh_identities test#35
emilyalbini merged 1 commit into
mainfrom
ea-fix-ssh

Conversation

@emilyalbini

Copy link
Copy Markdown
Member

Does what it says on the tin.

@emilyalbini
emilyalbini requested a review from plotnick August 11, 2026 15:42

@plotnick plotnick left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this was biting me too.

Comment thread client/src/identity.rs

#[cfg(test)]
mod test {
use std::time::Duration;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use std::time::Duration;
use std::time::{Duration, sleep};

Comment thread client/src/identity.rs
if sock.exists() {
break;
}
tokio::time::sleep(Duration::from_millis(100)).await;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tokio::time::sleep(Duration::from_millis(100)).await;
sleep(Duration::from_millis(100)).await;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

std::time::sleep doesn't exist and isn't async 😅

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I meant tokio, sorry.

@emilyalbini
emilyalbini merged commit 37da328 into main Aug 11, 2026
4 of 5 checks passed
@emilyalbini
emilyalbini deleted the ea-fix-ssh branch August 11, 2026 16:02
plotnick added a commit that referenced this pull request Aug 12, 2026
Brings in the ssh_identities agent-startup fix (#35) and the MUSL
client job (#34); the only conflict was test imports in identity.rs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants