We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e3b14c commit cd7d076Copy full SHA for cd7d076
spec/call_utils.rb
@@ -41,13 +41,13 @@ def get_manteca_test_status(test_id)
41
def cleanup_calls(calls, calls_api)
42
attempts = 0
43
44
- while (calls.length > 0 && attempts < 10)
+ while (calls&.length > 0 && attempts < 10)
45
calls.delete_if { |call_id| call_ended(call_id, calls_api) }
46
sleep(SLEEP_TIME_S)
47
attempts += 1
48
end
49
50
- if (calls.length > 0)
+ if (calls&.length > 0)
51
error_message = 'Failed to terminate all calls' + calls.to_s
52
raise StandardError.new error_message
53
0 commit comments