minitest-parallel_fork 1.1.0 → 1.1.1

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: 07a0f8e198d9bfcd52a03b4fe0870e49b90ce1dc28d9ada77a158baf406f6eb6
4
- data.tar.gz: 51f5ee3699e9251138235ea2f4c65a676a2a849e4249ec5528e4614a30837146
3
+ metadata.gz: 42db9e813710ee5326a0df5f24f4b5deb361cc21372e6a87124008039526cddc
4
+ data.tar.gz: e29d3ab12e2559a840a9bf92dd4653f0e98397c0381167c3f1dbb1fc6c7391f7
5
5
  SHA512:
6
- metadata.gz: 03fba31357a97e37091d85f6e7fad43c26999b9cc85d95302f0e8ea3432604ab12dc599b6db6228dd08cc6d5a2e30867648bbeb1f1bb2a470aee0b57c7bb7779
7
- data.tar.gz: 5e5617bbfe70c8100afdecbc5908292a6c259caba96871189407d1c5d53108645a59375c4f603ecec62fcd5048ac4bec477c8786d94b09ccf593cdaf6cfacefc
6
+ metadata.gz: 4e45f180446e10b90ab9aaa7051261eec1e5c472422a1b5c522f7d58cd44f4f0adef68f2d875f3061c4902662e2ed190208d8448af6d89b6faf78445e132c9dc
7
+ data.tar.gz: 5d8b6fecb607917c6bc3940ad758eae573a32c5f5b803f68bddc2e3bada9a50c0668e0ddfdb84d9cd14ee357a53ae6b15cd2ca33c24830cf1b57ded37b92b463
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.1.1 (2018-05-07)
2
+
3
+ * Work around marshalling issue when there are failures in *_all hooks when using minitest-hooks (jeremyevans)
4
+
5
+ * Don't deadlock when a child process sends a large amount of marshalled data (chanks) (#4, #5)
6
+
1
7
  === 1.1.0 (2018-04-19)
2
8
 
3
9
  * Remove DumpableUnexpectedError, require minitest 5.11.0+ (jeremyevans)
@@ -51,23 +51,24 @@ module Minitest
51
51
  end
52
52
 
53
53
  data = %w'count assertions results'.map{|meth| stat_reporter.send(meth)}
54
+ if data[-1].any?{|result| !result.is_a?(Minitest::Result)}
55
+ data[-1] = data[-1].map do |result|
56
+ Minitest::Result.from(result)
57
+ end
58
+ end
59
+
54
60
  write.write(Marshal.dump(data))
55
61
  write.close
56
62
  end
57
63
  write.close
58
64
  end
59
- Process.waitall
60
65
 
61
- Thread.new do
62
- reads.each do |r|
63
- data = r.read
64
- r.close
65
- count, assertions, results = Marshal.load(data)
66
- stat_reporter.count += count
67
- stat_reporter.assertions += assertions
68
- stat_reporter.results.concat(results)
69
- end
70
- end.join
66
+ reads.map{|read| Thread.new(read, &:read)}.map(&:value).each do |data|
67
+ count, assertions, results = Marshal.load(data)
68
+ stat_reporter.count += count
69
+ stat_reporter.assertions += assertions
70
+ stat_reporter.results.concat(results)
71
+ end
71
72
 
72
73
  nil
73
74
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-parallel_fork
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Evans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2018-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest