Skip to content

Commit faa8577

Browse files
committed
fix MSTEST0045
Fixing this properly would require the tests to respect testContext.CancellationToken. I'm not sure this is worth fixing or how to even do it for the sync methods. https://learn.microsoft.com/en-us/dotnet/core/testing/mstest-analyzers/mstest0045
1 parent c1a63d5 commit faa8577

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/Renci.SshNet.IntegrationTests/OldIntegrationTests/SshCommandTest.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public void Test_Execute_SingleCommand()
5454
}
5555

5656
[TestMethod]
57-
[Timeout(5000)]
5857
public void Test_CancelAsync_Unfinished_Command()
5958
{
6059
using var client = new SshClient(SshServerHostName, SshServerPort, User.UserName, User.Password);
@@ -76,7 +75,6 @@ public void Test_CancelAsync_Unfinished_Command()
7675
}
7776

7877
[TestMethod]
79-
[Timeout(5000)]
8078
public async Task Test_CancelAsync_Kill_Unfinished_Command()
8179
{
8280
using var client = new SshClient(SshServerHostName, SshServerPort, User.UserName, User.Password);
@@ -122,7 +120,6 @@ public void Test_CancelAsync_Finished_Command()
122120
}
123121

124122
[TestMethod]
125-
[Timeout(5000)]
126123
public async Task Test_ExecuteAsync_CancellationToken()
127124
{
128125
using var client = new SshClient(SshServerHostName, SshServerPort, User.UserName, User.Password);
@@ -195,7 +192,6 @@ public async Task Test_ExecuteAsync_Timeout()
195192
}
196193

197194
[TestMethod]
198-
[Timeout(15000)]
199195
public async Task Test_ExecuteAsync_Disconnect()
200196
{
201197
using (var client = new SshClient(SshServerHostName, SshServerPort, User.UserName, User.Password))

0 commit comments

Comments
 (0)