Skip to content

Commit 2f984c1

Browse files
committed
dont run this test
1 parent b6eed1d commit 2f984c1

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

test.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ local function main()
8686
require 'language' 'zh-cn'
8787
require 'library'.init()
8888
loadDocMetas()
89-
test 'tclient'
89+
--test 'tclient'
9090

9191
--config.Lua.intelliSense.searchDepth = 5
9292
--loadDocMetas()
@@ -100,7 +100,7 @@ local function main()
100100
require 'bee.platform'.OS = 'macOS'
101101
testAll()
102102

103-
test 'tclient'
103+
--test 'tclient'
104104

105105
--test 'full'
106106

test/tclient/lclient.lua

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,10 @@ function mt:update()
111111
for _, out in ipairs(outs) do
112112
if out.method then
113113
local callback = self._methods[out.method]
114-
if callback then
115-
proto.doResponse {
116-
id = out.id,
117-
params = callback(out.params),
118-
}
119-
else
120-
proto.doResponse {
121-
id = out.id,
122-
params = nil,
123-
}
124-
end
114+
proto.doResponse {
115+
id = out.id,
116+
params = callback(out.params),
117+
}
125118
else
126119
local callback = self._waiting[out.id]
127120
self._waiting[out.id] = nil

test/tclient/tests/single-mode.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ local util = require 'utility'
55

66
---@async
77
lclient():start(function (client)
8+
client:register('workspace/configuration', function ()
9+
return nil
10+
end)
11+
812
client:awaitRequest('initialize', {
913
clientInfo = {
1014
name = 'unit-test',

0 commit comments

Comments
 (0)