diff --git a/internal/js/bundle_test.go b/internal/js/bundle_test.go index 04c50e9ea61..3a170f79c03 100644 --- a/internal/js/bundle_test.go +++ b/internal/js/bundle_test.go @@ -755,6 +755,7 @@ func TestOpen(t *testing.T) { t.Run(tCase.name, testFunc) if isWindows { + tCase := tCase // copy test case before making modifications // windowsify the testcase tCase.openPath = strings.ReplaceAll(tCase.openPath, `/`, `\`) tCase.pwd = strings.ReplaceAll(tCase.pwd, `/`, `\`)