mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fail test when timeout reached
In this example it didn't matter but if we re-use the helper then it needs to raise an error after the timeout has been reached.
This commit is contained in:
@@ -75,10 +75,10 @@ RSpec.describe "DFC Permissions", feature: "cqcm-dev", vcr: true do
|
||||
|
||||
yield
|
||||
rescue on
|
||||
if Time.now.utc < finish
|
||||
sleep 0.1
|
||||
retry
|
||||
end
|
||||
raise if Time.now.utc > finish
|
||||
|
||||
sleep 0.1
|
||||
retry
|
||||
end
|
||||
|
||||
def platform_list(variant)
|
||||
|
||||
Reference in New Issue
Block a user