Output result of testEcho

This commit is contained in:
fbraem 2015-10-26 12:04:18 +01:00
parent 40f20421a8
commit 74b1ef2bb2

View File

@ -83,8 +83,18 @@ void RedisTest::testEcho()
command.add("ECHO");
command.add("Hello World");
BulkString result;
_redis.sendCommand(command, result);
try
{
BulkString result;
_redis.sendCommand(command, result);
if ( ! result.isNull() )
std::cout << "Result: " << result.value() << std::endl;
}
catch(RedisException &e)
{
std::cout << e.message() << std::endl;
}
}
void RedisTest::testPing()