Skip to content

Commit e2c0ed2

Browse files
committed
speed up Windows tests
turns out this is caused by DNS resolution taking about 2 seconds on every new connection...
1 parent ad3f0dc commit e2c0ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Renci.SshNet.IntegrationTests/TestsFixtures/InfrastructureFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public async Task InitializeAsync()
4747
#pragma warning restore MA0144 // use System.OperatingSystem to check the current OS
4848
{
4949
SshServerPort = 2222;
50-
SshServerHostName = "localhost";
50+
SshServerHostName = "127.0.0.1";
5151
await Task.Delay(1_000);
5252
return;
5353
}

0 commit comments

Comments
 (0)