tests: lazy guard against no socket error

This commit is contained in:
rhy 2023-01-14 10:14:58 -03:00
parent 6e277df64a
commit c038281f3c

View File

@ -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())