From 480eb7e1424db6490dd737e4fa245c6369094d5e Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Wed, 25 Dec 2024 15:46:05 +0100 Subject: [PATCH] tests: speedup random tests --- spec/unit/random_spec.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/unit/random_spec.lua b/spec/unit/random_spec.lua index 617bebf2d..181552965 100644 --- a/spec/unit/random_spec.lua +++ b/spec/unit/random_spec.lua @@ -10,7 +10,7 @@ describe("random package tests", function() end) it("should generate uuid without dash", function() - for i = 1, 10000 do + for i = 1, 1000 do local uuid = random.uuid() assert.Equals(uuid:len(), 32) assert.Equals(uuid:sub(13, 13), "4") @@ -19,7 +19,7 @@ describe("random package tests", function() end) it("should generate uuid with dash", function() - for i = 1, 10000 do + for i = 1, 1000 do local uuid = random.uuid(true) assert.Equals(uuid:len(), 36) assert.Equals(uuid:sub(9, 9), "-")