Fix broken tests

This commit is contained in:
Timothy Baldridge 2020-04-11 08:12:51 -06:00
parent da818d86f7
commit e04ca9b411
2 changed files with 6 additions and 2 deletions

View File

@ -23,11 +23,14 @@ namespace Wabbajack.BuildServer.Test
var found = await sqlService.GetJob();
Assert.NotNull(found);
Assert.IsAssignableFrom<GetNexusUpdatesJob>(found.Payload);
found.Result = JobResult.Success();
await sqlService.FinishJob(found);
}
[Fact]
public async Task PriorityMatters()
{
await ClearJobQueue();
var sqlService = Fixture.GetService<SqlService>();
var priority = new List<Job.JobPriority>
{

View File

@ -93,8 +93,9 @@ namespace Wabbajack.BuildServer.Test
Assert.IsType<UpdateModLists>(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)