diff --git a/pkg/cmd/run/view/view_test.go b/pkg/cmd/run/view/view_test.go index ffa46ad06..1cbd7fda6 100644 --- a/pkg/cmd/run/view/view_test.go +++ b/pkg/cmd/run/view/view_test.go @@ -423,7 +423,7 @@ func TestViewRun(t *testing.T) { httpmock.REST("GET", "repos/OWNER/REPO/actions/runs/3/logs"), httpmock.StringResponse("pretend these bytes constitute a zip file")) }, - wantOut: "✓ Downloaded logs to /tmp/gh-run-log-3.zip\n", + wantOut: "✓ Downloaded logs to " + path.Join(os.TempDir(), "gh-run-log-3.zip") + "\n", wantWrite: "pretend these bytes constitute a zip file", }, {