From ca5085c5035f0de18d7a011f4c94cdae42bcdca2 Mon Sep 17 00:00:00 2001 From: antao Date: Tue, 27 Nov 2018 17:52:46 +0800 Subject: [PATCH] Modify the output of the db_test program --- orm_lib/src/tests/db_test.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/orm_lib/src/tests/db_test.cc b/orm_lib/src/tests/db_test.cc index 1765d8a7..0530718c 100644 --- a/orm_lib/src/tests/db_test.cc +++ b/orm_lib/src/tests/db_test.cc @@ -82,12 +82,12 @@ int main() << "123" << "default" >> [](const Result &r) { - std::cout << "id=" << r[0]["id"].as() << std::endl; - testOutput(r[0]["id"].as() == 1, "Prepare the test environment(1)"); + //std::cout << "id=" << r[0]["id"].as() << std::endl; + testOutput(r[0]["id"].as() == 1, "DbClient streaming-type interface(0)"); } >> [](const DrogonDbException &e) { std::cerr << e.base().what() << std::endl; - testOutput(false, "Prepare the test environment(1)"); + testOutput(false, "DbClient streaming-type interface(0)"); }; ///1.2 insert,blocking *clientPtr << "insert into users \ @@ -99,12 +99,12 @@ int main() << "default" << Mode::Blocking >> [](const Result &r) { - std::cout << "id=" << r[0]["id"].as() << std::endl; - testOutput(r[0]["id"].as() == 2, "Prepare the test environment(1)"); + //std::cout << "id=" << r[0]["id"].as() << std::endl; + testOutput(r[0]["id"].as() == 2, "DbClient streaming-type interface(1)"); } >> [](const DrogonDbException &e) { std::cerr << e.base().what() << std::endl; - testOutput(false, "Prepare the test environment(1)"); + testOutput(false, "DbClient streaming-type interface(1)"); }; /// Add more testing here