Files
tgstation-server/tests/Tgstation.Server.Host.Watchdog.Tests/TestWatchdogFactory.cs
Jordan Dominion a6c85366ae Add Windows service commands 128, 129, and 130
- 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.
2023-06-25 21:00:26 -04:00

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>()));
}
}
}