From 2e39fb47362fe3a2f13c5903efad400e2745b930 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Fri, 8 Apr 2022 13:24:35 +0200 Subject: [PATCH] remove spy stub that will never be called --- docker/nginx/libs/skynet/scanner.spec.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker/nginx/libs/skynet/scanner.spec.lua b/docker/nginx/libs/skynet/scanner.spec.lua index 584f07ae..533ef44c 100644 --- a/docker/nginx/libs/skynet/scanner.spec.lua +++ b/docker/nginx/libs/skynet/scanner.spec.lua @@ -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)