@@ -41,7 +41,7 @@ describe('GitPromptServer', function() {
41
41
async function runCredentialScript ( command , queryHandler , processHandler ) {
42
42
await server . start ( queryHandler ) ;
43
43
44
- return new Promise ( ( resolve , reject ) => {
44
+ return new Promise ( resolve => {
45
45
const child = execFile (
46
46
getAtomHelperPath ( ) , [ tempDir . getCredentialHelperJs ( ) , server . getAddress ( ) , command ] ,
47
47
{ env : electronEnv } ,
@@ -72,7 +72,6 @@ describe('GitPromptServer', function() {
72
72
} ) ;
73
73
74
74
it ( 'prompts for user input and writes collected credentials to stdout' , async function ( ) {
75
- this . retries ( 5 ) ; // Known Flake
76
75
this . timeout ( 10000 ) ;
77
76
78
77
let queried = null ;
@@ -108,7 +107,6 @@ describe('GitPromptServer', function() {
108
107
109
108
it ( 'preserves a provided username' , async function ( ) {
110
109
this . timeout ( 10000 ) ;
111
- this . retries ( 5 ) ;
112
110
113
111
let queried = null ;
114
112
@@ -142,7 +140,6 @@ describe('GitPromptServer', function() {
142
140
143
141
it ( 'parses input without the terminating blank line' , async function ( ) {
144
142
this . timeout ( 10000 ) ;
145
- this . retries ( 5 ) ;
146
143
147
144
function queryHandler ( query ) {
148
145
return {
@@ -169,9 +166,8 @@ describe('GitPromptServer', function() {
169
166
170
167
it ( 'creates a flag file if remember is set to true' , async function ( ) {
171
168
this . timeout ( 10000 ) ;
172
- this . retries ( 5 ) ;
173
169
174
- function queryHandler ( query ) {
170
+ function queryHandler ( ) {
175
171
return {
176
172
username : 'old-man-from-scene-24' ,
177
173
password : 'Green. I mean blue! AAAhhhh...' ,
@@ -192,7 +188,6 @@ describe('GitPromptServer', function() {
192
188
193
189
it ( 'uses matching credentials from keytar if available without prompting' , async function ( ) {
194
190
this . timeout ( 10000 ) ;
195
- this . retries ( 5 ) ;
196
191
197
192
let called = false ;
198
193
function queryHandler ( ) {
@@ -230,7 +225,6 @@ describe('GitPromptServer', function() {
230
225
231
226
it ( 'uses a default username for the appropriate host if one is available' , async function ( ) {
232
227
this . timeout ( 10000 ) ;
233
- this . retries ( 5 ) ;
234
228
235
229
let called = false ;
236
230
function queryHandler ( ) {
@@ -273,7 +267,6 @@ describe('GitPromptServer', function() {
273
267
274
268
it ( 'uses credentials from the GitHub tab if available' , async function ( ) {
275
269
this . timeout ( 10000 ) ;
276
- this . retries ( 5 ) ;
277
270
278
271
let called = false ;
279
272
function queryHandler ( ) {
@@ -307,7 +300,6 @@ describe('GitPromptServer', function() {
307
300
308
301
it ( 'stores credentials in keytar if a flag file is present' , async function ( ) {
309
302
this . timeout ( 10000 ) ;
310
- this . retries ( 5 ) ;
311
303
312
304
let called = false ;
313
305
function queryHandler ( ) {
@@ -341,7 +333,6 @@ describe('GitPromptServer', function() {
341
333
342
334
it ( 'forgets stored credentials from keytar if authentication fails' , async function ( ) {
343
335
this . timeout ( 10000 ) ;
344
- this . retries ( 5 ) ;
345
336
346
337
function queryHandler ( ) {
347
338
return { } ;
@@ -387,7 +378,6 @@ describe('GitPromptServer', function() {
387
378
describe ( 'askpass helper' , function ( ) {
388
379
it ( 'prompts for user input and writes the response to stdout' , async function ( ) {
389
380
this . timeout ( 10000 ) ;
390
- this . retries ( 5 ) ;
391
381
392
382
let queried = null ;
393
383
@@ -400,7 +390,7 @@ describe('GitPromptServer', function() {
400
390
} ) ;
401
391
402
392
let err , stdout ;
403
- await new Promise ( ( resolve , reject ) => {
393
+ await new Promise ( resolve => {
404
394
const child = execFile (
405
395
getAtomHelperPath ( ) , [ tempDir . getAskPassJs ( ) , server . getAddress ( ) , 'Please enter your password for "updog"' ] ,
406
396
{ env : electronEnv } ,
0 commit comments