Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 7d5869f

Browse files
committed
Use server.getAddress() instead of tempDir.getSocketPath()
1 parent 9921977 commit 7d5869f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/git-prompt-server.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('GitPromptServer', function() {
4343

4444
return new Promise((resolve, reject) => {
4545
const child = execFile(
46-
getAtomHelperPath(), [tempDir.getCredentialHelperJs(), tempDir.getSocketPath(), command],
46+
getAtomHelperPath(), [tempDir.getCredentialHelperJs(), server.getAddress(), command],
4747
{env: electronEnv},
4848
(err, stdout, stderr) => {
4949
resolve({err, stdout, stderr});
@@ -402,7 +402,7 @@ describe('GitPromptServer', function() {
402402
let err, stdout;
403403
await new Promise((resolve, reject) => {
404404
const child = execFile(
405-
getAtomHelperPath(), [tempDir.getAskPassJs(), tempDir.getSocketPath(), 'Please enter your password for "updog"'],
405+
getAtomHelperPath(), [tempDir.getAskPassJs(), server.getAddress(), 'Please enter your password for "updog"'],
406406
{env: electronEnv},
407407
(_err, _stdout, _stderr) => {
408408
err = _err;

0 commit comments

Comments
 (0)