Test soft error in integration test

This commit is contained in:
Jordan Brown
2020-05-12 14:37:14 -04:00
parent d1004becfb
commit 545f48ae78
@@ -9,6 +9,7 @@ using System.Net;
using System.Threading;
using System.Threading.Tasks;
using Tgstation.Server.Api.Models;
using Tgstation.Server.Client;
using Tgstation.Server.Client.Components;
using Tgstation.Server.Host.Components.Interop;
using Tgstation.Server.Host.System;
@@ -34,6 +35,12 @@ namespace Tgstation.Server.Tests.Instance
HeartbeatSeconds = 0,
}, cancellationToken);
await ApiAssert.ThrowsException<ApiConflictException>(() => instanceClient.DreamDaemon.Update(new DreamDaemon
{
SoftShutdown = true,
SoftRestart = true
}, cancellationToken), ErrorCode.DreamDaemonDoubleSoft);
await RunBasicTest(cancellationToken);
await RunHeartbeatTest(cancellationToken);