From ac756708b0351c151a5c6549ed101967f3bad44c Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 25 Oct 2021 15:06:40 -0600 Subject: [PATCH] fix test on linux systems --- .github/workflows/tests.yaml | 12 ++++++------ Wabbajack.Compiler.Test/SanityTests.cs | 8 ++++++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b780c7a2..d45f0268 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 diff --git a/Wabbajack.Compiler.Test/SanityTests.cs b/Wabbajack.Compiler.Test/SanityTests.cs index 1e68065c..027d7ef3 100644 --- a/Wabbajack.Compiler.Test/SanityTests.cs +++ b/Wabbajack.Compiler.Test/SanityTests.cs @@ -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);