X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fintegration%2FServerTest.cpp;h=8fe7788a6849ce2c5efb861180caa76299c6f9f6;hb=7f829070c9a5e4e036b483863e5ee75a3a824c38;hp=9cee9ee1b90bd2024ba8d7d0e9820dd3c7a40b9a;hpb=307482574d3acac09e38263de521a1826ceec7ce;p=blank.git diff --git a/tst/integration/ServerTest.cpp b/tst/integration/ServerTest.cpp index 9cee9ee..8fe7788 100644 --- a/tst/integration/ServerTest.cpp +++ b/tst/integration/ServerTest.cpp @@ -9,16 +9,20 @@ namespace blank { namespace test { void ServerTest::setUp() { - + instance.reset(new TestInstance({ "--server" }, true)); + instance->AssertRunning(); } void ServerTest::tearDown() { - + std::unique_ptr inst(std::move(instance)); + inst->Terminate(); + inst->AssertExitStatus(0); + inst->AssertNoError(); } void ServerTest::testStartup() { - TestInstance server({ "--server" }, true); + // setUp and testDown do all the tests } }