move close too quick check into CLI (#4186)

This commit is contained in:
Gleb Bahmutov
2019-05-13 17:08:33 -04:00
committed by GitHub
parent d25cfacc6f
commit b21918921b
4 changed files with 45 additions and 38 deletions
+1 -3
View File
@@ -135,9 +135,7 @@ describe('lib/exec/spawn', function () {
})
it('retries with xvfb if fails with display exit code', function () {
const POTENTIAL_DISPLAY_PROBLEM_EXIT_CODE = 234
this.spawnedProcess.on.withArgs('close').onFirstCall().yieldsAsync(POTENTIAL_DISPLAY_PROBLEM_EXIT_CODE)
this.spawnedProcess.on.withArgs('close').onFirstCall().yieldsAsync(1)
this.spawnedProcess.on.withArgs('close').onSecondCall().yieldsAsync(0)
os.platform.returns('linux')