summaryrefslogtreecommitdiff
path: root/cli/lsp/testing/execution.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/lsp/testing/execution.rs')
-rw-r--r--cli/lsp/testing/execution.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/lsp/testing/execution.rs b/cli/lsp/testing/execution.rs
index 5fd1feb5a..809d02456 100644
--- a/cli/lsp/testing/execution.rs
+++ b/cli/lsp/testing/execution.rs
@@ -324,8 +324,11 @@ impl TestRun {
while let Some((_, event)) = receiver.recv().await {
match event {
test::TestEvent::Register(description) => {
- reporter.report_register(&description);
- tests.write().insert(description.id, description);
+ for (_, description) in description.into_iter() {
+ reporter.report_register(description);
+ // TODO(mmastrac): we shouldn't need to clone here - we can re-use the descriptions
+ tests.write().insert(description.id, description.clone());
+ }
}
test::TestEvent::Plan(plan) => {
summary.total += plan.total;