mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 04:57:17 +01:00
Simplify this job type check using new JobCodes
This commit is contained in:
@@ -9,6 +9,7 @@ using Microsoft.AspNetCore.SignalR.Client;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
using Tgstation.Server.Api.Hubs;
|
||||
using Tgstation.Server.Api.Models;
|
||||
using Tgstation.Server.Api.Models.Request;
|
||||
using Tgstation.Server.Api.Models.Response;
|
||||
using Tgstation.Server.Client;
|
||||
@@ -186,9 +187,9 @@ namespace Tgstation.Server.Tests.Live.Instance
|
||||
}
|
||||
else
|
||||
{
|
||||
var wasMissableJob = job.Description.StartsWith("Reconnect chat bot")
|
||||
|| job.Description.StartsWith("Instance startup watchdog reattach")
|
||||
|| job.Description.StartsWith("Instance startup watchdog launch");
|
||||
var wasMissableJob = job.JobCode == JobCode.ReconnectChatBot
|
||||
|| job.JobCode == JobCode.StartupWatchdogLaunch
|
||||
|| job.JobCode == JobCode.StartupWatchdogReattach;
|
||||
Assert.IsTrue(wasMissableJob);
|
||||
++missableMissedJobs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user