mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Test soft error in integration test
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user