diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-11 19:21:36 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-12 14:16:42 +0100 |
commit | 9a3e95785e80a6b03e8d71605ddb603bb6776b69 (patch) | |
tree | abeba5b04e7b452041dc3054fbac56dc1b91d482 /Tests/LibTLS/TestTLSHandshake.cpp | |
parent | 6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (diff) | |
download | serenity-9a3e95785e80a6b03e8d71605ddb603bb6776b69.zip |
LibCore: Propagate errors from `Stream::*_entire_buffer`
Diffstat (limited to 'Tests/LibTLS/TestTLSHandshake.cpp')
-rw-r--r-- | Tests/LibTLS/TestTLSHandshake.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibTLS/TestTLSHandshake.cpp b/Tests/LibTLS/TestTLSHandshake.cpp index f9b47d657f..8f0a96e7cb 100644 --- a/Tests/LibTLS/TestTLSHandshake.cpp +++ b/Tests/LibTLS/TestTLSHandshake.cpp @@ -96,17 +96,17 @@ TEST_CASE(test_TLS_hello_handshake) loop.quit(0); }; - if (!tls->write_entire_buffer("GET / HTTP/1.1\r\nHost: "_b)) { + if (tls->write_entire_buffer("GET / HTTP/1.1\r\nHost: "_b).is_error()) { FAIL("write(0) failed"); return; } auto the_server = DEFAULT_SERVER; - if (!tls->write_entire_buffer(the_server.bytes())) { + if (tls->write_entire_buffer(the_server.bytes()).is_error()) { FAIL("write(1) failed"); return; } - if (!tls->write_entire_buffer("\r\nConnection : close\r\n\r\n"_b)) { + if (tls->write_entire_buffer("\r\nConnection : close\r\n\r\n"_b).is_error()) { FAIL("write(2) failed"); return; } |