-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
@diasdavid The failure is most likely related to #8. Sometimes Travis runs okay. |
test/kad-dht.spec.js
Outdated
|
||
// Might need to disable on ci | ||
it('find peer query', (done) => { | ||
it.skip('find peer query', (done) => { |
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.
Why disable this test?
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.
It just takes too long to run on CI. See the comment above which was pre-existing
test/utils.spec.js
Outdated
@@ -110,7 +110,7 @@ describe('utils', () => { | |||
|
|||
describe('fromPublicKeyKey', () => { | |||
it('round trips', (done) => { | |||
makePeers(50, (err, peers) => { | |||
makePeers(10, (err, peers) => { |
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.
Why reduce the number of peers created?
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.
timeout issues on Travis CI
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.
Let's update the timeout for now. We will come back at speed later.
test/routing.spec.js
Outdated
@@ -30,7 +31,7 @@ describe('RoutingTable', () => { | |||
}) | |||
|
|||
it('add', (done) => { | |||
createPeers(20, (err, peers) => { | |||
createPeers(10, (err, peers) => { |
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.
Please, do not change the tests
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.
timeout issues on Travis CI
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.
You can always increase the timeout
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.
The timeout is already at 10 seconds. Unit tests are suppose to be quick.
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.
I understand the feeling of wanting fast tests, but if the developer before left the test this way, unless it is broken, it should continue.
If a test is slow, we can increase the timeout and by increasing the timeout we are making it clear and visible that it is slow that that we know we have to fix it.
@diasdavid If you take a look at the build history, its been failing since I'm just trying to get the tests to work. |
@diasdavid I'm getting tired of trying to fix test timeouts. The existential change is to use the new |
Ok, I went through all the tests and checked what was ok and not ok. My verdict is that this module still has ways to go, tests can all pass or fail catastrophically. It is known to be a WIP and apparently, there is even more work that needs to be progressed :) Going to merge and release for the sake of Windows interop, since this PR is not about fixing DHT problems. |
No description provided.