remove spy stub that will never be called

This commit is contained in:
Karol Wypchlo 2022-04-08 13:24:35 +02:00
parent a0693ac6b6
commit 2e39fb4736
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 1 additions and 3 deletions

View File

@ -54,9 +54,7 @@ describe("scan_skylink_timer", function()
it("should exit early on premature", function()
local resty_http = require("resty.http")
local request_uri = spy.new(function()
return { status = 200 } -- return 200 success
end)
local request_uri = spy.new()
local httpc = mock({ request_uri = request_uri })
stub(resty_http, "new").returns(httpc)