From 454cfcc17db34a9da359faec0ff87ab436feeb18 Mon Sep 17 00:00:00 2001 From: What-If-I Date: Thu, 27 Oct 2022 11:15:04 +0300 Subject: [PATCH] #187 Add comment --- runner/runner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runner/runner.go b/runner/runner.go index e1e1053..c25653e 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -66,6 +66,8 @@ func (r *Runner) Run() error { hasFocused := checkHasFocused(tests) for _, t := range tests { + // make a copy because go test runner runs tests in separate goroutines + // and without copy tests will override each other test := t if hasFocused { switch test.GetStatus() {