Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whitespaces
  • Loading branch information
antonfirsov authored and github-actions committed Sep 3, 2021
commit bb5e845efe68a7b9a53454ccec4ebf18597383ee
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ public static class TestSettings
public const int PassingTestLongTimeout = 30_000;
public const int FailingTestTimeout = 100;

public static Task WhenAllOrAnyFailedWithTimeout(params Task[] tasks) => tasks.WhenAllOrAnyFailed(PassingTestTimeout );
public static Task WhenAllOrAnyFailedWithTimeout(params Task[] tasks) => tasks.WhenAllOrAnyFailed(PassingTestTimeout);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public unsafe void Ctor_SafeHandle_UnknownSocket_Success()

netlink.Send(new ReadOnlySpan<byte>(Unsafe.AsPointer(ref req), sizeof(nl_request)));

Assert.True(netlink.Poll(TestSettings.PassingTestTimeout , SelectMode.SelectRead));
Assert.True(netlink.Poll(TestSettings.PassingTestTimeout, SelectMode.SelectRead));

byte[] response = new byte[4000];
int readBytes = netlink.Receive(response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public void Socket_ConnectAsyncDnsEndPoint_SetSocketProperties_Success(SocketImp
bool willRaiseEvent = sock.ConnectAsync(args);
if (willRaiseEvent)
{
Assert.True(complete.WaitOne(TestSettings.PassingTestTimeout ), "Timed out while waiting for connection");
Assert.True(complete.WaitOne(TestSettings.PassingTestTimeout), "Timed out while waiting for connection");
complete.Dispose(); // only dispose on success as we know we're done with the instance
}

Expand Down