-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes and improvements for port forwarding tests #6
Conversation
Add intermittend output test for ShellStream.
Can you please push updated TestTools? PrintMotd and AllowTcpForwarding are missing in SshdConfig. |
Done |
@@ -642,7 +661,7 @@ public void Ssh_RemotePortForwarding() | |||
using (var s = client.CreateShellStream("a", 80, 25, 800, 600, 200)) | |||
{ | |||
s.WriteLine($"telnet {forwardedPort1.BoundHost} {forwardedPort1.BoundPort}"); | |||
s.Expect("Escape character is '^]'."); | |||
s.Expect($"Connected to {forwardedPort1.BoundHost}\r\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests hang here. Expect() should be called with timeout (5 seconds should do it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a different issue open for this, so maybe we should leave this for later.
This PR definitely improved stability, so I think you can merge it.
SftpClient.Open(...)
.