From 1992fdeb1a2bc9ccb2761bf95faa601855d8d91c Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Sun, 14 Apr 2024 00:09:53 +0100 Subject: [PATCH] Use `filepath.Join` to support different platforms Signed-off-by: Babak K. Shandiz --- pkg/cmd/auth/shared/login_flow_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/cmd/auth/shared/login_flow_test.go b/pkg/cmd/auth/shared/login_flow_test.go index 9f2ebbed7..b9396a1a1 100644 --- a/pkg/cmd/auth/shared/login_flow_test.go +++ b/pkg/cmd/auth/shared/login_flow_test.go @@ -115,9 +115,9 @@ func TestLogin(t *testing.T) { The minimum required scopes are 'repo', 'read:org', 'admin:public_key'. - gh config set -h example.com git_protocol ssh ✓ Configured git protocol - ✓ Uploaded the SSH key to your GitHub account: %s/id_ed25519.pub + ✓ Uploaded the SSH key to your GitHub account: %s ✓ Logged in as monalisa - `, opts.sshContext.ConfigDir), stderr) + `, filepath.Join(opts.sshContext.ConfigDir, "id_ed25519.pub")), stderr) }, }, { @@ -193,9 +193,9 @@ func TestLogin(t *testing.T) { The minimum required scopes are 'repo', 'read:org', 'admin:public_key'. - gh config set -h example.com git_protocol ssh ✓ Configured git protocol - ✓ Uploaded the SSH key to your GitHub account: %s/id_ed25519.pub + ✓ Uploaded the SSH key to your GitHub account: %s ✓ Logged in as monalisa - `, opts.sshContext.ConfigDir), stderr) + `, filepath.Join(opts.sshContext.ConfigDir, "id_ed25519.pub")), stderr) }, }, {