Try and ignore flakey network tests

This commit is contained in:
Timothy Baldridge 2021-09-29 17:56:45 -06:00
parent d8e0ab4b0c
commit 04bb16eda9
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore
run: dotnet test --no-restore --filter "Category=!FlakeyNetwork"
publish:
name: Publish Projects

View File

@ -188,7 +188,7 @@ namespace Wabbajack.Downloaders.Dispatcher.Test
}
};
[Theory]
[Theory, Trait("Category", "FlakeyNetwork")]
[MemberData(nameof(TestStates))]
public async Task TestDownloadingFile(Archive archive, Archive badArchive)
{
@ -198,7 +198,7 @@ namespace Wabbajack.Downloaders.Dispatcher.Test
Assert.Equal(archive.Hash, hash);
}
[Theory]
[Theory, Trait("Category", "FlakeyNetwork")]
[MemberData(nameof(TestStates))]
public async Task TestFileVerification(Archive goodArchive, Archive badArchive)
{
@ -207,7 +207,7 @@ namespace Wabbajack.Downloaders.Dispatcher.Test
Assert.False(await _dispatcher.Verify(badArchive, CancellationToken.None));
}
[Theory]
[Theory, Trait("Category", "FlakeyNetwork")]
[MemberData(nameof(TestStates))]
public async Task CanParseAndUnParseUrls(Archive goodArchive, Archive badArchive)
{