Problems about promise.retry

so like i was trying out promise.retry

i made a callback function for promise but everytime i do[ for testing]

local function test()
return Promise.new(function(resolve,reject)
print(“a”)
reject(“it failed”)
end):catch(warn)

end

local maxre = 10
Promise.retry(test,maxre)

it activates once only i dont know why anyone knows the fix?