Restructuing
This commit is contained in:
@@ -11,7 +11,7 @@ public class TestSetup
|
||||
[OneTimeSetUp]
|
||||
public async Task BeforeAllTests()
|
||||
{
|
||||
Console.WriteLine("[DEBUG_LOG] Starting Server...");
|
||||
Console.WriteLine("[DEBUG_LOG] Starting Cloud...");
|
||||
|
||||
// Find solution root
|
||||
var currentDir = AppContext.BaseDirectory;
|
||||
@@ -20,7 +20,7 @@ public class TestSetup
|
||||
|
||||
if (currentDir == null) throw new Exception("Could not find Chrono.sln to determine project path.");
|
||||
|
||||
var projectPath = Path.Combine(currentDir, "Server", "Server.csproj");
|
||||
var projectPath = Path.Combine(currentDir, "Cloud", "Cloud.csproj");
|
||||
|
||||
var startInfo = new ProcessStartInfo
|
||||
{
|
||||
@@ -73,10 +73,10 @@ public class TestSetup
|
||||
if (!isReady)
|
||||
{
|
||||
_serverProcess.Kill(true);
|
||||
throw new Exception($"Server did not start within {timeout.TotalSeconds} seconds.");
|
||||
throw new Exception($"Cloud did not start within {timeout.TotalSeconds} seconds.");
|
||||
}
|
||||
|
||||
Console.WriteLine("[DEBUG_LOG] Server is ready.");
|
||||
Console.WriteLine("[DEBUG_LOG] Cloud is ready.");
|
||||
}
|
||||
|
||||
[OneTimeTearDown]
|
||||
@@ -84,7 +84,7 @@ public class TestSetup
|
||||
{
|
||||
if (_serverProcess != null && !_serverProcess.HasExited)
|
||||
{
|
||||
Console.WriteLine("[DEBUG_LOG] Stopping Server...");
|
||||
Console.WriteLine("[DEBUG_LOG] Stopping Cloud...");
|
||||
_serverProcess.Kill(true);
|
||||
_serverProcess.Dispose();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Chrono.Model;
|
||||
using Model;
|
||||
|
||||
namespace Tests;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user