diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-27 19:09:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-03-27 19:09:28 +0900 |
commit | c659d18f36aa9f587003d5f50a9734c85d684a7c (patch) | |
tree | ce74d597fbb892a99e3576548335a14802b8d8c9 | |
parent | 0e439f23ff96a219ad7156e40294f88d44d55361 (diff) | |
download | libquotient-c659d18f36aa9f587003d5f50a9734c85d684a7c.tar.gz libquotient-c659d18f36aa9f587003d5f50a9734c85d684a7c.zip |
qmc-example: add a couple homeserver data sanity checks
-rw-r--r-- | examples/qmc-example.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index 9d6f2f39..bd9190b9 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -101,6 +101,8 @@ QMCTest::QMCTest(Connection* conn, QString testRoomName, QString source) void QMCTest::setupAndRun() { + Q_ASSERT(!c->homeserver().isEmpty() && c->homeserver().isValid()); + Q_ASSERT(c->domain() == c->userId().section(':', 1)); cout << "Connected, server: " << c->homeserver().toDisplayString().toStdString() << endl; cout << "Access token: " << c->accessToken().toStdString() << endl; |