diff options
Diffstat (limited to 'test/tclient/lclient.lua')
-rw-r--r-- | test/tclient/lclient.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/tclient/lclient.lua b/test/tclient/lclient.lua index 166add42..8da8d138 100644 --- a/test/tclient/lclient.lua +++ b/test/tclient/lclient.lua @@ -4,6 +4,7 @@ local proto = require 'proto' local await = require 'await' local timer = require 'timer' local pub = require 'pub' +local json = require 'json' require 'provider' @@ -152,7 +153,12 @@ end ---@async function mt:awaitRequest(method, params) return await.wait(function (waker) - self:request(method, params, waker) + self:request(method, params, function (result) + if result == json.null then + result = nil + end + waker(result) + end) end) end |