luatest icon indicating copy to clipboard operation
luatest copied to clipboard

`server:exec` doesn't support `is_async` - it just returns `nil` and nothing else

Open Gerold103 opened this issue 3 years ago • 0 comments

The reason is that it thinks it will call eval([[return pcall(...)]] internally and drops first returned value. But with is_async the first returned value is the future object. It shouldn't be dropped. Moreover, when is_async is used, it should use any pcall wrappers on the server. It should return the result as is.

Gerold103 avatar May 16 '22 22:05 Gerold103