Skip to content

Commit

Permalink
fix(ci): require correct socket module (#13026)
Browse files Browse the repository at this point in the history
require 'socket.unix' was causing a different socket module to be loaded

If 'socket.unix' was loaded before the `socket` module, it resulted
in a different socket implementation to be used, which resulted in
failures when trying to access nil fields of the socket object.

More info: https://konghq.atlassian.net/browse/KAG-4472

(cherry picked from commit a212d89)
  • Loading branch information
samugi committed May 14, 2024
1 parent bfdb3e4 commit 6656f02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/busted-ci-helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
-- FAILED_TEST_FILES_FILE environment variable. This is used to
-- reduce test rerun times for flaky tests.


-- needed before requiring 'socket.unix'
require 'socket'

local busted = require 'busted'
local cjson = require 'cjson'
local socket_unix = require 'socket.unix'
Expand Down

0 comments on commit 6656f02

Please sign in to comment.