This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add circuit relay and aegir 12 (+ big refactor)
- Loading branch information
Showing
162 changed files
with
754 additions
and
345 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 |
---|---|---|
@@ -1,12 +1,48 @@ | ||
'use strict' | ||
|
||
const parallel = require('async/parallel') | ||
const ads = require('./test/utils/another-daemon-spawner') | ||
const js = ads.spawnJsNode | ||
const go = ads.spawnGoNode | ||
const stop = ads.stopNodes | ||
|
||
/* | ||
* spawns a daemon with ports numbers starting in 10 and ending in `num` | ||
*/ | ||
function start (done) { | ||
const base = '/ip4/127.0.0.1/tcp' | ||
|
||
if (!process.env.IPFS_TEST) { | ||
parallel([ | ||
(cb) => js([`${base}/10007`, `${base}/20007/ws`], true, 31007, 32007, cb), | ||
(cb) => js([`${base}/10008`, `${base}/20008/ws`], true, 31008, 32008, cb), | ||
(cb) => js([`${base}/10012`, `${base}/20012/ws`], true, 31012, 32012, cb), | ||
(cb) => js([`${base}/10013`, `${base}/20013/ws`], true, 31013, 32013, cb), | ||
(cb) => js([`${base}/10014`, `${base}/20014/ws`], true, 31014, 32014, cb), | ||
(cb) => js([`${base}/10015`, `${base}/20015/ws`], true, 31015, 32015, cb) | ||
], done) | ||
} else { | ||
parallel([ | ||
(cb) => go([`${base}/10027`, `${base}/20027/ws`], true, 33027, 44027, cb), | ||
(cb) => go([`${base}/10028`, `${base}/20028/ws`], true, 33028, 44028, cb), | ||
(cb) => go([`${base}/10031`, `${base}/20031/ws`], true, 33031, 44031, cb), | ||
(cb) => go([`${base}/10032`, `${base}/20032/ws`], true, 33032, 44032, cb) | ||
], done) | ||
} | ||
} | ||
|
||
module.exports = { | ||
karma: { | ||
files: [{ | ||
pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*', | ||
watched: false, | ||
served: true, | ||
included: false | ||
included: false, | ||
singleRun: false | ||
}] | ||
}, | ||
hooks: { | ||
pre: start, | ||
post: stop | ||
} | ||
} |
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 was deleted.
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
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
Oops, something went wrong.