wire/internal/wire: run wire tests in parallel (google/go-cloud#309)
This commit is contained in:
@@ -69,7 +69,10 @@ func TestWire(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
|
test := test
|
||||||
t.Run(test.name, func(t *testing.T) {
|
t.Run(test.name, func(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
|
|
||||||
// Run Wire from a fake build context.
|
// Run Wire from a fake build context.
|
||||||
bctx := test.buildContext()
|
bctx := test.buildContext()
|
||||||
gen, errs := Generate(bctx, wd, test.pkg)
|
gen, errs := Generate(bctx, wd, test.pkg)
|
||||||
|
|||||||
Reference in New Issue
Block a user