mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-17 19:12:52 +01:00
a6c85366ae
- 128 triggers a server shutdown. - 129 and 130 are identical to SIGUSR1 and SIGUSR2 respectively, triggering a graceful shutdown and detaching shutdown respectively. - These are implemented via pipes and are preferred to using the update path going forward. Should eventually replace the param entirely at the next possibility. - New service params to detach and restart any running server as opposed to stopping entirely. - Defer all service control to Service executable from Configure app. - Console runner returns non-zero on error. - Fix setting ACL of appsettings.Production.yml.
25 lines
504 B
C#
25 lines
504 B
C#
using Microsoft.Extensions.Logging;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
using Moq;
|
|
|
|
namespace Tgstation.Server.Host.Watchdog.Tests
|
|
{
|
|
/// <summary>
|
|
/// Tests for <see cref="WatchdogFactory"/>
|
|
/// </summary>
|
|
[TestClass]
|
|
public sealed class TestWatchdogFactory
|
|
{
|
|
[TestMethod]
|
|
public void TestCreateWatchdog()
|
|
{
|
|
var factory = new WatchdogFactory();
|
|
Assert.IsNotNull(
|
|
factory.CreateWatchdog(
|
|
Mock.Of<ISignalChecker>(),
|
|
Mock.Of<ILoggerFactory>()));
|
|
}
|
|
}
|
|
}
|