]> git.localhorst.tv Git - blank.git/commitdiff
test some more parameters
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Nov 2016 15:28:07 +0000 (16:28 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Nov 2016 15:28:07 +0000 (16:28 +0100)
tst/integration/ClientTest.cpp
tst/integration/StandaloneTest.cpp

index b9f0937f4120984df9d6160c4c7d509dc49a64c9..b5f052d2c2880c9820c756d742577a3b53ec2c38 100644 (file)
@@ -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();
index 0431b5778d3f9de636674bcd402c69fd377c3850..5426b59316e3a0ae678f2c3d86f9a6bb0a723705 100644 (file)
@@ -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();
 }