-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix missing lsof on node v14 for citgm tests * Attempt to fix flaky tests on macos in CI. Should also address AIX for citgm. * Skip tests without lsof rather than allow them to pass * Tighten-up flaky tests for citgm based on review * More test tightening from review of fixes for citgm.
- Loading branch information
Showing
4 changed files
with
93 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
const ChildProcess = require('child_process'); | ||
|
||
const internals = {}; | ||
|
||
internals.hasLsof = () => { | ||
|
||
try { | ||
ChildProcess.execSync(`lsof -p ${process.pid}`, { stdio: 'ignore' }); | ||
} | ||
catch (err) { | ||
return false; | ||
} | ||
|
||
return true; | ||
}; | ||
|
||
exports.hasLsof = internals.hasLsof(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters