From 56e6a4aee28d4b0115b29e918a5defebd8fdbed5 Mon Sep 17 00:00:00 2001 From: chronolaw Date: Thu, 17 Oct 2024 07:35:09 +0800 Subject: [PATCH] lint clean --- spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua | 5 +++-- spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua b/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua index bdcbd6f1c5fa..73535807692f 100644 --- a/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua +++ b/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua @@ -50,7 +50,9 @@ for _, strategy in helpers.each_strategy() do local body = assert.res_status(200, res) local json = cjson.decode(body) - --[[ TODO: need a new test method + assert(json) + + -- TODO: need a new test method for _, v in pairs(json.data) do if v.ip == "127.0.0.1" and v.rpc_capabilities and #v.rpc_capabilities ~= 0 then table.sort(v.rpc_capabilities) @@ -61,7 +63,6 @@ for _, strategy in helpers.each_strategy() do end return true - --]] end, 10) end) end) diff --git a/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua b/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua index 626193e35b49..600a8872f995 100644 --- a/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua +++ b/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua @@ -2,9 +2,8 @@ local helpers = require "spec.helpers" local cjson = require("cjson.safe") ---[[ -- keep it for future usage -local function obtain_dp_node_id() +local function obtain_dp_node_id() -- luacheck: ignore local dp_node_id helpers.wait_until(function() @@ -27,7 +26,6 @@ local function obtain_dp_node_id() return dp_node_id end ---]] for _, inc_sync in ipairs { "on", "off" } do