integration-tests-rails 1.1.7 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e732edd0e972866d16068a2107718237047d94b501aaffd6966ea72fa4ddd65
|
|
4
|
+
data.tar.gz: fd6ee38aa3bcbd326e8db89c5fc8442752525f2913fc3aee505d802905b90145
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3a2c6f00c16430811ddeae480bd34858757462d37524b5a76b101b9be86e106ffbb28ef493b2fec8a9cae91c0e8d3544879d9ebc797f614c76c425c1b1cc35a8
|
|
7
|
+
data.tar.gz: 1e10bb718a921b4a1ad4b5d57dc255bc67714e57e5c5113e0b07e2aad14cf54f2cf4d7b9c1e73c7a56d90b099e891f8e7709528a02736d816b662a33bbe3cef1
|
|
@@ -12,11 +12,11 @@ module IntegrationTestsRails
|
|
|
12
12
|
(attempts + 1).times do |attempt_number|
|
|
13
13
|
reset_example_state(context)
|
|
14
14
|
example.run
|
|
15
|
-
ex =
|
|
15
|
+
ex = example.exception
|
|
16
16
|
break unless ex
|
|
17
17
|
break unless capture_exceptions.any? { |klass| ex.is_a?(klass) }
|
|
18
18
|
|
|
19
|
-
Util.log "Auto Retry Attempt #{attempt_number + 1} failed for: #{description}"
|
|
19
|
+
Util.log "Auto Retry Attempt #{attempt_number + 1} failed for: #{description} (#{ex.class})"
|
|
20
20
|
sleep(sleep_duration) if attempt_number < attempts && sleep_duration.positive?
|
|
21
21
|
end
|
|
22
22
|
end
|
|
@@ -54,7 +54,11 @@ module IntegrationTestsRails
|
|
|
54
54
|
@puma_threads = '1:1'
|
|
55
55
|
@remote = false
|
|
56
56
|
@retry_attempts = 1
|
|
57
|
-
@retry_capture_exceptions = [
|
|
57
|
+
@retry_capture_exceptions = [
|
|
58
|
+
'RSpec::Expectations::ExpectationNotMetError',
|
|
59
|
+
'Capybara::ElementNotFound',
|
|
60
|
+
'Ferrum::JavaScriptError'
|
|
61
|
+
]
|
|
58
62
|
@retry_sleep_duration = 0
|
|
59
63
|
@server_host = '0.0.0.0' # rubocop:disable Style/IpAddresses
|
|
60
64
|
@server_port = nil
|