From e04ca9b4117508542ef0480eeea93f3d13941e1b Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sat, 11 Apr 2020 08:12:51 -0600 Subject: [PATCH] Fix broken tests --- Wabbajack.BuildServer.Test/JobQueueTests.cs | 3 +++ Wabbajack.BuildServer.Test/ModListValidationTests.cs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Wabbajack.BuildServer.Test/JobQueueTests.cs b/Wabbajack.BuildServer.Test/JobQueueTests.cs index ab1ae72a..48794c75 100644 --- a/Wabbajack.BuildServer.Test/JobQueueTests.cs +++ b/Wabbajack.BuildServer.Test/JobQueueTests.cs @@ -23,11 +23,14 @@ namespace Wabbajack.BuildServer.Test var found = await sqlService.GetJob(); Assert.NotNull(found); Assert.IsAssignableFrom(found.Payload); + found.Result = JobResult.Success(); + await sqlService.FinishJob(found); } [Fact] public async Task PriorityMatters() { + await ClearJobQueue(); var sqlService = Fixture.GetService(); var priority = new List { diff --git a/Wabbajack.BuildServer.Test/ModListValidationTests.cs b/Wabbajack.BuildServer.Test/ModListValidationTests.cs index 4ea16eb0..cbe55014 100644 --- a/Wabbajack.BuildServer.Test/ModListValidationTests.cs +++ b/Wabbajack.BuildServer.Test/ModListValidationTests.cs @@ -93,8 +93,9 @@ namespace Wabbajack.BuildServer.Test Assert.IsType(job.Payload); - var jobResult = await job.Payload.Execute(sql, settings); - Assert.Equal(JobResultType.Success, jobResult.ResultType); + job.Result = await job.Payload.Execute(sql, settings); + await sql.FinishJob(job); + Assert.Equal(JobResultType.Success, job.Result.ResultType); } private async Task CheckListFeeds(int failed, int passed)