From 97b15fea2d269cc579ea299a9af33e7c61a685ba Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 5 Apr 2021 15:33:31 -0500 Subject: [PATCH] xplatform oops --- pkg/cmd/run/view/view_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/cmd/run/view/view_test.go b/pkg/cmd/run/view/view_test.go index 34c4cd56e..ffa46ad06 100644 --- a/pkg/cmd/run/view/view_test.go +++ b/pkg/cmd/run/view/view_test.go @@ -5,6 +5,8 @@ import ( "io" "io/ioutil" "net/http" + "os" + "path" "testing" "time" @@ -403,7 +405,7 @@ func TestViewRun(t *testing.T) { as.StubOne(2) as.StubOne(0) }, - 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", }, {