From 5f255a3e92d430cdad481fd629e2de2373778aa9 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 5 Nov 2026 07:20:46 +0100 Subject: [PATCH] test: expect the slash form of the CA path on Windows HostEnvironment.GetActPath converts backslashes to slashes on Windows, so NODE_EXTRA_CA_CERTS points at the slash form of the temp dir and the assertion against the raw path failed there. Assisted-by: Claude Code:claude-opus-5-5 --- act/runner/run_context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/act/runner/run_context_test.go b/act/runner/run_context_test.go index c8b9c320..9c1682dc 100644 --- a/act/runner/run_context_test.go +++ b/act/runner/run_context_test.go @@ -1490,7 +1490,7 @@ func TestCopyWorkflowFilesHandsNodeTheRunnerCAUnlessTheJobOrImageSetsIt(t *testi return env } - assert.Equal(t, actPath+"/ca.crt", stepEnv(caFile, nil, nil, nil)["NODE_EXTRA_CA_CERTS"]) + assert.Equal(t, filepath.ToSlash(actPath)+"/ca.crt", stepEnv(caFile, nil, nil, nil)["NODE_EXTRA_CA_CERTS"]) ca, err := os.ReadFile(filepath.Join(actPath, "ca.crt")) require.NoError(t, err) assert.Equal(t, "PEM\n", string(ca))