<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi, Sergey<br>
</p>
<div class="moz-cite-prefix">On 12.04.2024 13:47, Sergey Kaplun
wrote:<br>
</div>
<p><br>
</p>
<p><snipped><br>
</p>
<blockquote type="cite" cite="mid:ZhkRMgdlQC8c6-Gw@root"><span
style="white-space: pre-wrap">
</span>
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">+function M.read_file(path)
+ local file = assert(io.open(path), 'cannot open an object file')</pre>
</blockquote>
</blockquote>
<p>Fixed and force-pushed a message in assert:</p>
<p><br>
</p>
<p>--- a/test/tarantool-tests/utils/tools.lua<br>
+++ b/test/tarantool-tests/utils/tools.lua<br>
@@ -15,7 +15,7 @@ end<br>
-- Reads a file located at a specified path and returns its<br>
-- content.<br>
function M.read_file(path)<br>
- local file = assert(io.open(path), 'cannot open an object
file')<br>
+ local file = assert(io.open(path), 'cannot open a file')<br>
local content = <a class="moz-txt-link-freetext" href="file:read('*a')">file:read('*a')</a><br>
<a class="moz-txt-link-freetext" href="file:close()">file:close()</a><br>
return content</p>
<p><br>
</p>
<blockquote type="cite" cite="mid:ZhkRMgdlQC8c6-Gw@root">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
+ local content = <a class="moz-txt-link-freetext" href="file:read('*a')">file:read('*a')</a>
+ <a class="moz-txt-link-freetext" href="file:close()">file:close()</a>
+ return content
+end
+
return M
--
2.34.1
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>