mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-22 06:04:35 +00:00
tests: lazy guard against no socket error
This commit is contained in:
parent
6e277df64a
commit
c038281f3c
@ -181,6 +181,9 @@ local function test_uuid4()
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function test_ulid()
|
local function test_ulid()
|
||||||
|
-- bail if there's no appropriate time func
|
||||||
|
if select(2, pcall(identifier.ulid)):find('time function') then return end
|
||||||
|
|
||||||
for i = 1, 100 do
|
for i = 1, 100 do
|
||||||
local ulid = assert(identifier.ulid())
|
local ulid = assert(identifier.ulid())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user