Readme.md in parallel_tests-2.7.1 vs Readme.md in parallel_tests-2.8.0
- old
+ new
@@ -78,20 +78,26 @@
Running things once
===================
```Ruby
-# affected by race-condition: first process may boot slower the second
+# preparation:
+# affected by race-condition: first process may boot slower than the second
# either sleep a bit or use a lock for example File.lock
ParallelTests.first_process? ? do_something : sleep(1)
+# cleanup:
+# last_process? does NOT mean last finished process, just last started
+ParallelTests.last_process? ? do_something : sleep(1)
+
at_exit do
if ParallelTests.first_process?
ParallelTests.wait_for_other_processes_to_finish
undo_something
end
end
+
```
Loggers
===================
@@ -350,9 +356,10 @@
- [Cezary Baginski](https://github.com/e2)
- [Marius Ioana](https://github.com/mariusioana)
- [Lukas Oberhuber](https://github.com/lukaso)
- [Ryan Zhang](https://github.com/ryanus)
- [Rhett Sutphin](https://github.com/rsutphin)
+ - [Doc Ritezel](https://github.com/ohrite)
[Michael Grosser](http://grosser.it)<br/>
michael@grosser.it<br/>
License: MIT