Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
moteus committed Sep 5, 2016
1 parent e8ada5e commit 6a1e2ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/basic_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe("writers", function()

it('async_udp', function()
local ok, status, msg = exec_code[[
local writer = require "log.writer.async.udp".new('127.0.0.1', 5555,
local writer = require "log.writer.async.udp".new('127.0.0.1', '5555',
"return require 'log.writer.stdout'.new()"
)
Expand Down
6 changes: 3 additions & 3 deletions test/test_basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ end

function test_async_udp()
local ok, status, msg = exec_code[[
local writer = require "log.writer.async.udp".new('127.0.0.1', 5555,
local writer = require "log.writer.async.udp".new('127.0.0.1', '5555',
"return require 'log.writer.stdout'.new()"
)
Expand Down Expand Up @@ -274,7 +274,7 @@ function test_do_not_raise_error_nil_argument()
local formatter = require "log.formatter.pformat".new()

local msg
assert_pass(function() msg = formatter("%s", nil) end)
assert_pass(function() msg = formatter("%d", nil) end)
assert_string(msg)

local expected = tostring(nil)
Expand Down Expand Up @@ -322,7 +322,7 @@ function test_do_not_raise_error_nil_argument_2()
local formatter = require "log.formatter.pformat".new(true)

local msg
assert_pass(function() msg = formatter("%s", nil) end)
assert_pass(function() msg = formatter("%d", nil) end)
assert_string(msg)

local expected = tostring(nil)
Expand Down

0 comments on commit 6a1e2ed

Please sign in to comment.