Skip to content

Commit 92397be

Browse files
committed
Handle timeout with TLS 1.3 and client certificate
1 parent 9a10a2c commit 92397be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/rpc/requestrouter_test.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,12 @@ namespace {
320320
}
321321
const auto error = waitForError("foo"_l1, QByteArray{});
322322
QCOMPARE(error.has_value(), true);
323-
QCOMPARE(error.value(), RpcError::ConnectionError);
323+
if (error.value() == RpcError::TimedOut) {
324+
// Can happen with TLS 1.3
325+
warning().log("Connecting to server requiring client certificate timed out");
326+
} else {
327+
QCOMPARE(error.value(), RpcError::ConnectionError);
328+
}
324329
}
325330

326331
void checkClientCertificateSuccess() {

0 commit comments

Comments
 (0)