mirror of https://github.com/qt/qtgrpc.git
QtGrpcSslClientTest: verify that incorrectSSL status is not okay
Extends the testcase. The call should fail here with a non-OK status code. Pick-to: 6.10 6.9 6.8 Change-Id: I4b8f833f2cb147d9b301004c51dc2a3388876fb6 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
542efe69ec
commit
ef9ff0cd55
|
|
@ -35,6 +35,8 @@ void QtGrpcSslClientTest::incorrectSecureCredentialsTest()
|
||||||
auto reply = client()->testMethod(req);
|
auto reply = client()->testMethod(req);
|
||||||
QSignalSpy finishedSpy(reply.get(), &QGrpcCallReply::finished);
|
QSignalSpy finishedSpy(reply.get(), &QGrpcCallReply::finished);
|
||||||
QTRY_COMPARE_EQ_WITH_TIMEOUT(finishedSpy.count(), 1, MessageLatencyWithThreshold);
|
QTRY_COMPARE_EQ_WITH_TIMEOUT(finishedSpy.count(), 1, MessageLatencyWithThreshold);
|
||||||
|
auto status = finishedSpy.first().first().value<QGrpcStatus>();
|
||||||
|
QVERIFY(!status.isOk());
|
||||||
}
|
}
|
||||||
|
|
||||||
QTEST_MAIN(QtGrpcSslClientTest)
|
QTEST_MAIN(QtGrpcSslClientTest)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue