Skip to content

Commit

Permalink
Merge pull request Kong#159 from Mashape/fix/travis
Browse files Browse the repository at this point in the history
verbose
  • Loading branch information
subnetmarco committed Apr 24, 2015
2 parents 2808112 + ffbae51 commit 89abd9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kong/tools/io.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _M.path = path

function _M.os_execute(command)
local n = os.tmpname() -- get a temporary file name to store output
local exit_code = os.execute(command.." > "..n.." 2>&1")
local exit_code = os.execute("/bin/bash -c '"..command.." > "..n.." 2>&1'")
local result = _M.read_file(n)
os.remove(n)

Expand Down
4 changes: 2 additions & 2 deletions spec/unit/syslog_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local function start_udp_server()
function()
local socket = require("socket")
udp = socket.udp()
udp:setsockname("*", 8888)
udp:setsockname("*", 8889)
data, ip, port = udp:receivefrom()
return data
end;
Expand All @@ -26,7 +26,7 @@ describe("Syslog", function()

-- Override constants
constants.SYSLOG.ADDRESS = "127.0.0.1"
constants.SYSLOG.PORT = 8888
constants.SYSLOG.PORT = 8889

-- Make the request
syslog.log({hello="world"})
Expand Down

0 comments on commit 89abd9e

Please sign in to comment.