From fd547423c46412f24fa5ca4ccbb55129ef06ba08 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Fri, 25 Nov 2016 16:28:07 +0100 Subject: [PATCH] test some more parameters --- tst/integration/ClientTest.cpp | 14 +++++++------- tst/integration/StandaloneTest.cpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tst/integration/ClientTest.cpp b/tst/integration/ClientTest.cpp index b9f0937..b5f052d 100644 --- a/tst/integration/ClientTest.cpp +++ b/tst/integration/ClientTest.cpp @@ -11,16 +11,16 @@ namespace blank { namespace test { void ClientTest::setUp() { - server.reset(new TestInstance({ "--server" }, true)); + server.reset(new TestInstance({ "--server", "--port", "12354", "--world-name", "brave-new-world" }, true)); server->AssertRunning(); server->AssertOutputLine("loading spawn chunks"); server->AssertOutputLine("listening on UDP port 12354"); - client.reset(new TestInstance({ "--client", "--no-vsync" })); + client.reset(new TestInstance({ "--client", "--no-vsync", "--host", "localhost", "--port", "12354", "--player-name", "aldous" })); client->AssertRunning(); - client->AssertOutputLine("got message before interface was created: player \"default\" joined"); - client->AssertOutputLine("joined game \"default\""); - server->AssertOutputLine("player \"default\" joined"); - server->AssertOutputLine("accepted login from player \"default\""); + client->AssertOutputLine("got message before interface was created: player \"aldous\" joined"); + client->AssertOutputLine("joined game \"brave-new-world\""); + server->AssertOutputLine("player \"aldous\" joined"); + server->AssertOutputLine("accepted login from player \"aldous\""); } void ClientTest::tearDown() { @@ -34,7 +34,7 @@ void ClientTest::tearDown() { } if (srv) { srv->Terminate(); - srv->AssertOutputLine("player \"default\" left"); + srv->AssertOutputLine("player \"aldous\" left"); srv->AssertOutputLine("saving remaining chunks"); srv->AssertNoOutput(); srv->AssertNoError(); diff --git a/tst/integration/StandaloneTest.cpp b/tst/integration/StandaloneTest.cpp index 0431b57..5426b59 100644 --- a/tst/integration/StandaloneTest.cpp +++ b/tst/integration/StandaloneTest.cpp @@ -10,7 +10,7 @@ namespace blank { namespace test { void StandaloneTest::setUp() { - instance.reset(new TestInstance({ "--standalone", "--no-vsync" })); + instance.reset(new TestInstance({ "--standalone", "--no-vsync", "-d", "-s", "43576325" })); instance->AssertRunning(); } -- 2.39.2