summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-10-31 09:58:04 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2016-10-31 09:58:04 -0700
commit07a5925fb495179694c28a3c7836eb25fef737b8 (patch)
treed229100cd9fa051011708182c410ad34e3e94e6f
parent724aa063d3797a82995f313bc447bd55e8520a47 (diff)
Fix a small typo and expand batching comment
-rw-r--r--tests/tests.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index 003c0f1a..4cecc2c2 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -92,8 +92,9 @@ fn run_bindgen_tests() {
.and_then(|x| x.parse::<usize>().ok())
.unwrap_or(TEST_BATCH_DEFAULT_SIZE);
- // Spawn batch_size child to run in parallel
- // and wait on all of them before processing the next batch
+ // Spawn `batch_size` children to run in parallel and wait on all of them
+ // before processing the next batch. This puts a limit on the resources
+ // consumed when testing, so that we don't overload the system.
let children = tests.chunks(batch_size).map(|x| {
x.iter().map(|entry| {