identify + test refactor and reorg

This commit is contained in:
David Dias 2015-07-09 13:53:09 -07:00
parent 572c7e4cfa
commit 6c82973315
2 changed files with 7 additions and 14 deletions

View File

@ -36,8 +36,8 @@ function Identify (swarm, peerSelf) {
stream.end()
// receive their info and how they see us
// send back our stuff
// receive their info and how they see us
// send back our stuff
})
swarm.on('connection', function (spdyConnection) {
@ -79,9 +79,9 @@ function Identify (swarm, peerSelf) {
})
})
})
// open a spdy stream
// do the multistream handshake
// send them our data
// open a spdy stream
// do the multistream handshake
// send them our data
})
function exportPeer (peer) {

View File

@ -45,7 +45,6 @@ afterEach(function (done) {
})
experiment('BASE', function () {
test('Open a stream', {timeout: false}, function (done) {
var protocol = '/sparkles/3.3.3'
var c = new Counter(2, done)
@ -61,13 +60,9 @@ experiment('BASE', function () {
})
})
experiment('IDENTIFY', function () {
experiment('IDENTIFY', function () {})
})
experiment('HARDNESS', function () {
})
experiment('HARDNESS', function () {})
function Counter (target, callback) {
var c = 0
@ -80,5 +75,3 @@ function Counter (target, callback) {
}
}
}