Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tejal29 committed Jun 5, 2020
1 parent ba00c9f commit 57818cf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions integration/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,18 @@ func TestSnapshotBenchmarkGcloud(t *testing.T) {
for _, num := range nums {
t.Run(fmt.Sprintf("test_benchmark_%d", num), func(t *testing.T) {
wg.Add(1)
var err error
go func(num int, err error) {
var dir string
dir, err = runInGcloud(contextDir, num)
go func(num int) {
dir, err := runInGcloud(contextDir, num)
if err != nil {
t.Errorf("error when running in gcloud %v", err)
return
}
r := newResult(t, filepath.Join(dir, "results"))
fmt.Println(fmt.Sprintf("%d,%f,%f,%f, %f", num, r.totalBuildTime, r.walkingFiles, r.resolvingFiles, r.hashingFiles))
wg.Done()
defer os.Remove(dir)
defer os.Chdir(cwd)
}(num, err)
if err != nil {
t.Errorf("could not run benchmark results for num %d due to %s", num, err)
}
}(num)
})
}
wg.Wait()
Expand Down

0 comments on commit 57818cf

Please sign in to comment.