puppetlabs_spec_helper 5.0.2 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0463812df931c62b101e5dd8711923e5787b75710b75a9cd22e965db859f7ca4'
|
4
|
+
data.tar.gz: 1fed48c27d1f6e64a37d127866158933b8188eb09241d66c2587e54b7ff3e358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6932eaa811fabd5fbd61b0447719f0dc51f1f69cd62e336f63dedf35c8fab6ee29bbb5fc004c65602edac33dab2e207bc08dbd56546dcdfefd18c52e1b95138c
|
7
|
+
data.tar.gz: c187e3756855b13ee5098505f892c143cfbd13d3301c50bea80ad52dd4a9e5f8419786a579da02dd15ba1ba5df2bd353ce6fc5906f2d402097a167c6331f7f8f
|
@@ -317,7 +317,9 @@ module PuppetlabsSpecHelper
|
|
317
317
|
end
|
318
318
|
else
|
319
319
|
# the last thread started should be the longest wait
|
320
|
-
|
320
|
+
# Rubocop seems to push towards using select here.. however the implementation today relies on the result being
|
321
|
+
# an array. Select returns a hash which makes it unsuitable so we need to use find_all.last.
|
322
|
+
item, item_opts = items.find_all { |_i, o| o.key?(:thread) }.last # rubocop:disable Performance/Detect, Style/CollectionMethods
|
321
323
|
logger.debug "Waiting on #{item}"
|
322
324
|
item_opts[:thread].join # wait for the thread to finish
|
323
325
|
# now that we waited lets try again
|