sshnet / SSH.NET

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism.
MIT License
3.87k stars 915 forks source link

fix flaky Connectivity Tests #1403

Closed mus65 closed 1 month ago

mus65 commented 1 month ago

these two tests were not waiting for the interruption (all other usages of BreakConnections() did). This could cause random failures because e.g. the wrong exception is thrown.

example: https://ci.appveyor.com/project/drieseng/ssh-net/builds/49831433/job/4urb0upx63bvxcgu

mus65 commented 1 month ago

CI failure is yet another flaky test that should be fixed by #1404