From 8207df757b9b57b4df5ce809dc66c5e1eb9d37cd Mon Sep 17 00:00:00 2001 From: Mihail Stoykov Date: Wed, 5 Feb 2025 17:36:54 +0200 Subject: [PATCH] Fix TestOpen on windows --- internal/js/bundle_test.go | 1 + 1 file changed, 1 insertion(+) 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, `/`, `\`)