Data Race in function commands.handleTestBuild() - commands/builds_helper_test.go:176
==================
WARNING: DATA RACE
Write at 0x00c4200bf2d8 by goroutine 28:
gitlab.com/gitlab-org/gitlab-runner/commands.handleTestBuild()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper_test.go:176 +0x182
Previous read at 0x00c4200bf2d8 by goroutine 27:
gitlab.com/gitlab-org/gitlab-runner/commands.newStatePermutationFromBuild()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper.go:32 +0x15e
gitlab.com/gitlab-org/gitlab-runner/commands.(*buildsHelper).statesAndStages()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper.go:177 +0x13f
gitlab.com/gitlab-org/gitlab-runner/commands.concurrentlyCallStatesAndStages()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper_test.go:150 +0xf8
Goroutine 28 (running) created at:
gitlab.com/gitlab-org/gitlab-runner/commands.TestBuildHelperCollectWhenRemovingBuild()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper_test.go:208 +0x7cb
testing.tRunner()
/usr/local/Cellar/go@1.8/1.8.5/libexec/src/testing/testing.go:657 +0x107
Goroutine 27 (running) created at:
gitlab.com/gitlab-org/gitlab-runner/commands.TestBuildHelperCollectWhenRemovingBuild()
/Users/nolith/src/gitlab.com/gitlab-org/gitlab-runner/commands/builds_helper_test.go:197 +0x22e
testing.tRunner()
/usr/local/Cellar/go@1.8/1.8.5/libexec/src/testing/testing.go:657 +0x107
==================