X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fintegration%2FServerTest.cpp;h=8fe7788a6849ce2c5efb861180caa76299c6f9f6;hb=7f829070c9a5e4e036b483863e5ee75a3a824c38;hp=c5ca60e4f34b12b11c99279abbf030b5fce91b73;hpb=985dff25f7fde96308a66e5b01bc226589fd0825;p=blank.git diff --git a/tst/integration/ServerTest.cpp b/tst/integration/ServerTest.cpp index c5ca60e..8fe7788 100644 --- a/tst/integration/ServerTest.cpp +++ b/tst/integration/ServerTest.cpp @@ -9,20 +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); - server.AssertRunning(); - server.Terminate(); - server.AssertExitStatus(0); - server.AssertNoError(); + // setUp and testDown do all the tests } }