mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-03-05 15:15:59 +02:00
Retry up to 5 times for disk tests that sometimes fail
This commit is contained in:
parent
6ea047dcb4
commit
f333196efe
@ -10,6 +10,7 @@ namespace NzbDrone.Common.Test.DiskTests
|
|||||||
public abstract class DiskProviderFixtureBase<TSubject> : TestBase<TSubject> where TSubject : class, IDiskProvider
|
public abstract class DiskProviderFixtureBase<TSubject> : TestBase<TSubject> where TSubject : class, IDiskProvider
|
||||||
{
|
{
|
||||||
[Test]
|
[Test]
|
||||||
|
[Retry(5)]
|
||||||
public void directory_exist_should_be_able_to_find_existing_folder()
|
public void directory_exist_should_be_able_to_find_existing_folder()
|
||||||
{
|
{
|
||||||
Subject.FolderExists(TempFolder).Should().BeTrue();
|
Subject.FolderExists(TempFolder).Should().BeTrue();
|
||||||
@ -43,6 +44,7 @@ namespace NzbDrone.Common.Test.DiskTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[Retry(5)]
|
||||||
public void FolderWritable_should_return_false_for_unwritable_directory()
|
public void FolderWritable_should_return_false_for_unwritable_directory()
|
||||||
{
|
{
|
||||||
var tempFolder = GetTempFilePath();
|
var tempFolder = GetTempFilePath();
|
||||||
@ -122,6 +124,7 @@ namespace NzbDrone.Common.Test.DiskTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[Retry(5)]
|
||||||
public void empty_folder_should_return_folder_modified_date()
|
public void empty_folder_should_return_folder_modified_date()
|
||||||
{
|
{
|
||||||
var tempfolder = new DirectoryInfo(TempFolder);
|
var tempfolder = new DirectoryInfo(TempFolder);
|
||||||
|
@ -616,6 +616,7 @@ namespace NzbDrone.Common.Test.DiskTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
[Retry(5)]
|
||||||
public void CopyFolder_should_copy_folder()
|
public void CopyFolder_should_copy_folder()
|
||||||
{
|
{
|
||||||
WithRealDiskProvider();
|
WithRealDiskProvider();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user