Commit dd752d6
gopls/internal/test/integration/completion: fix flaky TestUnimportedCompletion_VSCodeIssue3365
The test used nested t.Run() subtests inside a runner.Run callback.
Env methods called e.TB.Fatal() on the parent subtest's t from within
a child subtest goroutine, causing "FailNow on a parent test" panics
and 20-minute timeouts.
Replace the inner t.Run() subtests with a plain loop.
Fixes golang/go#77756
Change-Id: I37e1c77606981665bdb762316da3b02b5c6505fc
Reviewed-on: https://go-review.googlesource.com/c/tools/+/748620
Reviewed-by: Alan Donovan <adonovan@google.com>
Commit-Queue: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Madeline Kalil <mkalil@google.com>1 parent a5d96d4 commit dd752d6
File tree
1 file changed
+11
-14
lines changed- gopls/internal/test/integration/completion
1 file changed
+11
-14
lines changedLines changed: 11 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
723 | 720 | | |
724 | 721 | | |
725 | 722 | | |
| |||
0 commit comments