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:
Maikel Linke
2025-08-12 09:54:48 +10:00
parent ca34d24847
commit 3a72aefc1c

View File

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