Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Sep 12, 2024
1 parent 83980a6 commit 1652aca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/unit/request_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ local function getInstance(headers)
end
}

return Request:new(8080, client, server)
local handler = {
log = require "pegasus.log"
}

return Request:new(8080, client, server, handler)
end

local function verifyHttpMethod(method)
Expand Down
1 change: 1 addition & 0 deletions spec/unit/response_spec.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local Response = require 'pegasus.response'
local Handler = require 'pegasus.handler'
Handler.log = require 'pegasus.log'

describe('response', function()
describe('instance', function()
Expand Down

0 comments on commit 1652aca

Please sign in to comment.