Skip to content

Commit

Permalink
chore: update mplex and stats test numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobheun committed Oct 2, 2018
1 parent 02145a6 commit e3b4b42
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"aegir": "^15.1.0",
"chai": "^4.1.2",
"dirty-chai": "^2.0.1",
"libp2p-mplex": "~0.8.0",
"libp2p-mplex": "~0.8.2",
"libp2p-pnet": "~0.1.0",
"libp2p-secio": "~0.10.0",
"libp2p-spdy": "~0.12.1",
Expand Down
22 changes: 11 additions & 11 deletions test/stats.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ describe('Stats', () => {

switches.forEach((swtch) => {
let snapshot = swtch.stats.global.snapshot
expect(snapshot.dataReceived.toFixed()).to.equal('2426')
expect(snapshot.dataSent.toFixed()).to.equal('2426')
expect(snapshot.dataReceived.toFixed()).to.equal('2210')
expect(snapshot.dataSent.toFixed()).to.equal('2210')
})

teardown(switches, done)
Expand Down Expand Up @@ -162,8 +162,8 @@ describe('Stats', () => {
expect(err).to.not.exist()
switches.forEach((swtch) => {
let snapshot = swtch.stats.forTransport('tcp').snapshot
expect(snapshot.dataReceived.toFixed()).to.equal('2426')
expect(snapshot.dataSent.toFixed()).to.equal('2426')
expect(snapshot.dataReceived.toFixed()).to.equal('2210')
expect(snapshot.dataSent.toFixed()).to.equal('2210')
})
teardown(switches, done)
})
Expand All @@ -187,8 +187,8 @@ describe('Stats', () => {
switches.forEach((swtch, index) => {
const other = selectOther(switches, index)
let snapshot = swtch.stats.forPeer(other._peerInfo.id.toB58String()).snapshot
expect(snapshot.dataReceived.toFixed()).to.equal('2426')
expect(snapshot.dataSent.toFixed()).to.equal('2426')
expect(snapshot.dataReceived.toFixed()).to.equal('2210')
expect(snapshot.dataSent.toFixed()).to.equal('2210')
})
teardown(switches, done)
})
Expand Down Expand Up @@ -226,8 +226,8 @@ describe('Stats', () => {
switches.forEach((swtch, index) => {
const other = selectOther(switches, index)
const snapshot = swtch.stats.forPeer(other._peerInfo.id.toB58String()).snapshot
expect(snapshot.dataReceived.toFixed()).to.equal('2426')
expect(snapshot.dataSent.toFixed()).to.equal('2426')
expect(snapshot.dataReceived.toFixed()).to.equal('2210')
expect(snapshot.dataSent.toFixed()).to.equal('2210')
})
teardown(switches, done)
})
Expand Down Expand Up @@ -264,10 +264,10 @@ describe('Stats', () => {
switches.forEach((swtch, index) => {
const other = selectOther(switches, index)
const snapshot = swtch.stats.forPeer(other._peerInfo.id.toB58String()).snapshot
expect(snapshot.dataReceived.toFixed()).to.equal('4852')
expect(snapshot.dataSent.toFixed()).to.equal('4852')
expect(snapshot.dataReceived.toFixed()).to.equal('4420')
expect(snapshot.dataSent.toFixed()).to.equal('4420')
})
teardown(switches, done)
teardown(switches, cb)
}
], done)
})
Expand Down

0 comments on commit e3b4b42

Please sign in to comment.