mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix broken tests
This commit is contained in:
parent
da818d86f7
commit
e04ca9b411
@ -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>
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user