diff options
| author | levlam <levlam@telegram.org> | 2020-07-15 16:38:04 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2020-07-15 16:38:04 +0300 |
| commit | c9889d1a2025f5fee92b8eca54f96b1c28053bfe (patch) | |
| tree | 70ebbd6a3104f60c4cf0941385576bc300f5a6ed /test/mtproto.cpp | |
| parent | 1b2d42a7b69b87fca2057691243acf5c94e813bf (diff) | |
Fix TLS handshake.
GitOrigin-RevId: 7542732a79c9fed971332203a620f32ce6d8f878
Diffstat (limited to 'test/mtproto.cpp')
| -rw-r--r-- | test/mtproto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/mtproto.cpp b/test/mtproto.cpp index a0a894985..c6b11de20 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -670,8 +670,10 @@ TEST(Mtproto, TlsTransport) { class Callback : public TransparentProxy::Callback { public: void set_result(Result<SocketFd> result) override { - if (!result.is_error() || result.error().message() != "Response hash mismatch") { - LOG(ERROR) << "Receive unexpected result"; + if (result.is_ok()) { + LOG(ERROR) << "Unexpectedly succeeded to connect to MTProto proxy"; + } else if (result.error().message() != "Response hash mismatch") { + LOG(ERROR) << "Receive unexpected result " << result.error(); } Scheduler::instance()->finish(); } |
