Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authordavidebeatrici <davidebeatrici@gmail.com>2018-01-25 03:10:14 +0300
committerdavidebeatrici <davidebeatrici@gmail.com>2018-01-25 03:10:14 +0300
commite017c4063f94b68206eaef7183fe545ea32ac6db (patch)
tree0acda07a454395e65ffdc351fcec62e7cd266088 /src/tests
parentd47f2e342c4ed8ca9fc4b4b9213423c1039a388a (diff)
TestSelfSignedCertificate: Check that both "cert" and "key" are not empty
It was a copy/paste error.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/TestSelfSignedCertificate/TestSelfSignedCertificate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/TestSelfSignedCertificate/TestSelfSignedCertificate.cpp b/src/tests/TestSelfSignedCertificate/TestSelfSignedCertificate.cpp
index e3ad5df70..2e87d1d41 100644
--- a/src/tests/TestSelfSignedCertificate/TestSelfSignedCertificate.cpp
+++ b/src/tests/TestSelfSignedCertificate/TestSelfSignedCertificate.cpp
@@ -34,12 +34,12 @@ void TestSelfSignedCertificate::exerciseClientCert() {
bool ok = SelfSignedCertificate::generateMumbleCertificate(QLatin1String("Test"), QLatin1String("test@test.test"), cert, key);
QCOMPARE(ok, true);
QCOMPARE(cert.isNull(), false);
- QCOMPARE(cert.isNull(), false);
+ QCOMPARE(key.isNull(), false);
ok = SelfSignedCertificate::generateMumbleCertificate(QString(), QString(), cert, key);
QCOMPARE(ok, false);
QCOMPARE(cert.isNull(), true);
- QCOMPARE(cert.isNull(), true);
+ QCOMPARE(key.isNull(), true);
}
void TestSelfSignedCertificate::exerciseServerCert() {
@@ -49,7 +49,7 @@ void TestSelfSignedCertificate::exerciseServerCert() {
bool ok = SelfSignedCertificate::generateMurmurV2Certificate(cert, key);
QCOMPARE(ok, true);
QCOMPARE(cert.isNull(), false);
- QCOMPARE(cert.isNull(), false);
+ QCOMPARE(key.isNull(), false);
}
QTEST_MAIN(TestSelfSignedCertificate)