Simplify ping-pong test.

This commit is contained in:
Christoph Heiss 2018-02-26 11:04:19 +01:00
parent b91c211b03
commit ee704fece5

View file

@ -14,8 +14,7 @@ int main()
resply::Client client;
client.connect();
std::stringstream stream;
stream << client.command("ping");
auto result{client.command("ping")};
return stream.str() != "PONG";
return !(result.type == resply::Result::Type::String && result.string == "PONG");
}