summaryrefslogtreecommitdiff
path: root/Tests/LibMarkdown/TestCommonmark.cpp
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-11 19:21:36 +0100
committerAndreas Kling <kling@serenityos.org>2022-12-12 14:16:42 +0100
commit9a3e95785e80a6b03e8d71605ddb603bb6776b69 (patch)
treeabeba5b04e7b452041dc3054fbac56dc1b91d482 /Tests/LibMarkdown/TestCommonmark.cpp
parent6c7c5a6786f5f168b9e228f9d4b41ed1e64bc8f3 (diff)
downloadserenity-9a3e95785e80a6b03e8d71605ddb603bb6776b69.zip
LibCore: Propagate errors from `Stream::*_entire_buffer`
Diffstat (limited to 'Tests/LibMarkdown/TestCommonmark.cpp')
-rw-r--r--Tests/LibMarkdown/TestCommonmark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tests/LibMarkdown/TestCommonmark.cpp b/Tests/LibMarkdown/TestCommonmark.cpp
index a3a5e720cd..5d85c61023 100644
--- a/Tests/LibMarkdown/TestCommonmark.cpp
+++ b/Tests/LibMarkdown/TestCommonmark.cpp
@@ -22,8 +22,7 @@ TEST_SETUP
auto file = file_or_error.release_value();
auto file_size = MUST(file->size());
auto content = MUST(ByteBuffer::create_uninitialized(file_size));
- if (!file->read_entire_buffer(content.bytes()))
- VERIFY_NOT_REACHED();
+ MUST(file->read_entire_buffer(content.bytes()));
DeprecatedString test_data { content.bytes() };
auto tests = JsonParser(test_data).parse().value().as_array();