Hi, Sergey

On 12.04.2024 13:47, Sergey Kaplun wrote:


<snipped>


      
+function M.read_file(path)
+  local file = assert(io.open(path), 'cannot open an object file')

Fixed and force-pushed a message in assert:


--- a/test/tarantool-tests/utils/tools.lua
+++ b/test/tarantool-tests/utils/tools.lua
@@ -15,7 +15,7 @@ end
 -- Reads a file located at a specified path and returns its
 -- content.
 function M.read_file(path)
-  local file = assert(io.open(path), 'cannot open an object file')
+  local file = assert(io.open(path), 'cannot open a file')
   local content = file:read('*a')
   file:close()
   return content


+  local content = file:read('*a')
+  file:close()
+  return content
+end
+
 return M
-- 
2.34.1