summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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| {