Use filepath.Join to support different platforms
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
parent
d241259d4e
commit
1992fdeb1a
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue