wire/internal/wire: run wire tests in parallel (google/go-cloud#309)

This commit is contained in:
shantuo
2018-08-10 13:24:35 -07:00
committed by Ross Light
parent 0e97bcaf0c
commit 4328970c68

View File

@@ -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)