Integration test to test restartround.
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Content.IntegrationTests.Tests.Networking
|
||||
{
|
||||
// Initialize client & server with text component and system registered.
|
||||
// They can't be registered/detected automatically.
|
||||
var (client, server) = await StartConnectedServerClientPair(
|
||||
var (client, server) = await StartConnectedServerDummyTickerClientPair(
|
||||
new ClientContentIntegrationOption
|
||||
{
|
||||
// This test is designed around specific timing values and when I wrote it interpolation was off.
|
||||
|
||||
24
Content.IntegrationTests/Tests/RestartRoundTest.cs
Normal file
24
Content.IntegrationTests/Tests/RestartRoundTest.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Threading.Tasks;
|
||||
using Content.Server.Interfaces.GameTicking;
|
||||
using NUnit.Framework;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.IntegrationTests.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class RestartRoundTest : ContentIntegrationTest
|
||||
{
|
||||
[Test]
|
||||
public async Task Test()
|
||||
{
|
||||
var (client, server) = await StartConnectedServerClientPair();
|
||||
|
||||
server.Post(() =>
|
||||
{
|
||||
IoCManager.Resolve<IGameTicker>().RestartRound();
|
||||
});
|
||||
|
||||
await RunTicksSync(client, server, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user