test: capture url to fix flaky test

This commit is contained in:
Michael Schurter
2020-02-14 10:32:58 -08:00
parent e4832653b3
commit 6362e32161

View File

@@ -61,6 +61,7 @@ func syncVault(t *testing.T) map[string]string {
g, _ := errgroup.WithContext(ctx)
for ver, url := range missing {
dst := filepath.Join(binDir, ver)
url := url
g.Go(func() error {
sema <- 1
defer func() {