Skip to content

Commit 43689f9

Browse files
committed
return an empty table using mock_resty_dns_query
1 parent 088d679 commit 43689f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rootfs/etc/nginx/lua/test/balancer_test.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ describe("Balancer", function()
447447
}
448448
}
449449

450-
helpers.mock_resty_dns_query("example.com", nil, "Mock was instructed to return error")
450+
helpers.mock_resty_dns_query("example.com", {}, "Mock was instructed to return error")
451451
local mock_instance = { sync = function(backend) end }
452452
setmetatable(mock_instance, implementation)
453453
implementation.new = function(self, backend) return mock_instance end
@@ -463,7 +463,7 @@ describe("Balancer", function()
463463
endpoints = nil
464464
}
465465

466-
helpers.mock_resty_dns_query("example.com", nil, "Mock was instructed to return error")
466+
helpers.mock_resty_dns_query("example.com", {}, "Mock was instructed to return error")
467467
local mock_instance = { sync = function(backend) end }
468468
setmetatable(mock_instance, implementation)
469469
implementation.new = function(self, backend) return mock_instance end

0 commit comments

Comments
 (0)