mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
fixed broken tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using NLog;
|
||||
@@ -42,6 +43,9 @@ namespace NzbDrone.Test.Common
|
||||
|
||||
public abstract class TestBase : LoggingTest
|
||||
{
|
||||
|
||||
private static readonly Random _random = new Random();
|
||||
|
||||
private AutoMoqer _mocker;
|
||||
protected AutoMoqer Mocker
|
||||
{
|
||||
@@ -58,6 +62,15 @@ namespace NzbDrone.Test.Common
|
||||
|
||||
protected Mock<RestProvider> MockedRestProvider { get; private set; }
|
||||
|
||||
protected int RandomNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
Thread.Sleep(1);
|
||||
return _random.Next(0, int.MaxValue);
|
||||
}
|
||||
}
|
||||
|
||||
private string VirtualPath
|
||||
{
|
||||
get
|
||||
|
Reference in New Issue
Block a user