-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Proxy support * remove unused and lint * log teardown * skip tb * node 14 * remove skip and node update * remove consle * Remove stray newline after merge * upgrade deps * update locl * Avoid upsetting the linter * detectOpenHandles * remove jest global * max tiemout * --testTimeout param * tb back * tb partial tests * tb partial tests 2 * skip tb test * tb skip change * isolating tb test * isolating tb test * commit one * merge master [skip ci] * no proxy * no timeout * Run tests with global timeout Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org> * remove skip * forceexit Co-authored-by: Helio Machado <0x2b3bfa0+git@googlemail.com> Co-authored-by: Casper da Costa-Luis <casper.dcl@physics.org>
- Loading branch information
1 parent
60ff630
commit 4f7a5d9
Showing
13 changed files
with
646 additions
and
494 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const CML = require('../src/cml').default; | ||
|
||
describe('Github tests', () => { | ||
const OLD_ENV = process.env; | ||
|
||
|
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
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
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,22 @@ | ||
const ProxyServer = require('transparent-proxy'); | ||
|
||
const PORT = 9093; | ||
const startProxy = () => { | ||
if (global.proxyTestsServer) return; | ||
|
||
global.proxyTestsServer = new ProxyServer(); | ||
global.proxyTestsServer.listen(PORT, '0.0.0.0', () => | ||
console.log(`Proxy listening on port ${PORT}`) | ||
); | ||
}; | ||
const stopProxy = () => { | ||
console.log('Teardown Jest. Stoping Proxy...'); | ||
global.proxyTestsServer.close(); | ||
global.proxyTestsServer.unref(); | ||
}; | ||
|
||
module.exports = { | ||
startProxy, | ||
stopProxy, | ||
PORT | ||
}; |
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,5 @@ | ||
const { startProxy, PORT } = require('./proxy'); | ||
module.exports = () => { | ||
process.env.http_proxy = `http://localhost:${PORT}`; | ||
startProxy(); | ||
}; |
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,4 @@ | ||
const { stopProxy } = require('./proxy'); | ||
module.exports = () => { | ||
stopProxy(); | ||
}; |
4f7a5d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Comment
4f7a5d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Comment
4f7a5d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Comment
4f7a5d9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Comment