Skip to content

Commit dbfd9c8

Browse files
committed
cleanup
1 parent f04f22b commit dbfd9c8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Tests/GlobalUsings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
global using Microsoft.AspNetCore.Hosting;
1+
global using System.Net;
2+
global using System.Net.Sockets;
3+
global using Microsoft.AspNetCore.Hosting;

src/Tests/SocketWaiterTests.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using System.Net;
2-
using System.Net.Sockets;
31
using VerifyTestsPlaywright;
42

53
public class SocketWaiterTests

src/Verify.Playwright/InnerSocketWaiter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static async Task Wait(int port)
99
using var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
1010
try
1111
{
12-
using var cancellation = new CancellationTokenSource(TimeSpan.FromMilliseconds(100));
12+
using var cancellation = new CancelSource(TimeSpan.FromMilliseconds(100));
1313
await socket.ConnectAsync(new DnsEndPoint("localhost", port), cancellation.Token);
1414
return;
1515
}

0 commit comments

Comments
 (0)