Improve integration testing

This commit is contained in:
Pieter-Jan Briers
2019-06-29 01:58:16 +02:00
parent e8498d1bb2
commit f97977323a
12 changed files with 177 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ using Robust.UnitTesting;
namespace Content.IntegrationTests
{
[TestFixture]
public class StartTest : RobustIntegrationTest
public class StartTest : ContentIntegrationTest
{
/// <summary>
/// Test that the server starts.
@@ -15,8 +15,6 @@ namespace Content.IntegrationTests
public async Task TestServerStart()
{
var server = StartServer();
await server.WaitIdleAsync();
Assert.That(server.IsAlive);
server.RunTicks(5);
await server.WaitIdleAsync();
Assert.That(server.IsAlive);
@@ -25,7 +23,6 @@ namespace Content.IntegrationTests
server.Stop();
await server.WaitIdleAsync();
Assert.That(!server.IsAlive);
Assert.That(server.UnhandledException, Is.Null);
}
/// <summary>