This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
146 additions
and
803 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,36 +1,23 @@ | ||
'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' | ||
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) | ||
} | ||
const createServer = require('ipfsd-ctl').createServer | ||
|
||
const server = createServer() | ||
module.exports = { | ||
karma: { | ||
files: [{ | ||
pattern: 'node_modules/interface-ipfs-core/test/fixtures/**/*', | ||
pattern: 'test/fixtures/**/*', | ||
watched: false, | ||
served: true, | ||
included: false, | ||
singleRun: false | ||
}] | ||
included: false | ||
}], | ||
singleRun: true, | ||
browserNoActivityTimeout: 100 * 1000 | ||
}, | ||
hooks: { | ||
pre: start, | ||
post: stop | ||
browser: { | ||
pre: server.start.bind(server), | ||
post: server.stop.bind(server) | ||
} | ||
} | ||
} |
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,10 +1,7 @@ | ||
/* eslint-env mocha */ | ||
'use strict' | ||
|
||
describe('browser interop tests', () => { | ||
it('need to get written', function (done) { | ||
this.timeout(10 * 1000) | ||
// for teardown time | ||
setTimeout(done, 5 * 1000) | ||
}) | ||
}) | ||
// require('./exchange-files') | ||
// require('./pubsub') | ||
require('./kad-dht') | ||
require('./repo') |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.