fix test on linux systems

This commit is contained in:
Timothy Baldridge 2021-10-25 15:06:40 -06:00
parent 2561687976
commit ac756708b0
2 changed files with 12 additions and 8 deletions

View File

@ -45,12 +45,12 @@ jobs:
- name: Test
run: dotnet test --no-restore --filter "Category!=FlakeyNetwork"
- name: Upload Test Folder on Failure
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: Failed Files
path: ./
#- name: Upload Test Folder on Failure
# if: ${{ failure() }}
# uses: actions/upload-artifact@v2
# with:
# name: Failed Files
# path: ./
publish:
name: Publish Projects

View File

@ -104,7 +104,9 @@ public class CompilerSanityTests : IAsyncLifetime
[Fact]
public async Task CanExtractBSAs()
{
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa).First();
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa)
.OrderBy(d => d.Size())
.First();
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
bsa.Delete();
@ -115,7 +117,9 @@ public class CompilerSanityTests : IAsyncLifetime
[Fact]
public async Task CanRecreateBSAs()
{
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa).First();
var bsa = _mod.FullPath.EnumerateFiles(Ext.Bsa)
.OrderBy(d => d.Size())
.First();
await _fileExtractor.ExtractAll(bsa, _mod.FullPath, CancellationToken.None);
var reader = await BSADispatch.Open(bsa);