Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
20 changes: 20 additions & 0 deletions test/Sentry.Testing/FakeReliableNetworkStatusListener.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace Sentry.Testing;

/// <summary>
/// To be used when we don't want the real network status to affect the reliability of our tests
/// </summary>
public class FakeReliableNetworkStatusListener : INetworkStatusListener
Comment thread
Flash0ver marked this conversation as resolved.
{
public static readonly FakeReliableNetworkStatusListener Instance = new();

private FakeReliableNetworkStatusListener()
{
}

public bool Online => true;

public Task WaitForNetworkOnlineAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
}
Loading
Loading