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 +4 -4
- data/CHANGELOG +6 -0
- data/lib/minitest/parallel_fork.rb +12 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42db9e813710ee5326a0df5f24f4b5deb361cc21372e6a87124008039526cddc
|
4
|
+
data.tar.gz: e29d3ab12e2559a840a9bf92dd4653f0e98397c0381167c3f1dbb1fc6c7391f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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.
|
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-
|
11
|
+
date: 2018-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|