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:
Dennis Oberst 2025-07-10 12:02:24 +02:00
parent 542efe69ec
commit ef9ff0cd55
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ void QtGrpcSslClientTest::incorrectSecureCredentialsTest()
auto reply = client()->testMethod(req);
QSignalSpy finishedSpy(reply.get(), &QGrpcCallReply::finished);
QTRY_COMPARE_EQ_WITH_TIMEOUT(finishedSpy.count(), 1, MessageLatencyWithThreshold);
auto status = finishedSpy.first().first().value<QGrpcStatus>();
QVERIFY(!status.isOk());
}
QTEST_MAIN(QtGrpcSslClientTest)