LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Integration tests failing randomly due to low timeout - Closes#1103 #1211

Closed ishantiw closed 5 years ago

ishantiw commented 5 years ago

What was the problem?

Integration tests are failing randomly in p2p.

How did I fix it?

For partial network test, the value of ackTimeout and connectTimeout was very low (100ms) and sometimes it was not enough time to connect with other nodes if the network is a bit slow. We have increased the timeouts to 1000ms.

How to test it?

npm t

Review checklist

ishantiw commented 5 years ago

Now its throwing,

@liskhq/lisk-p2p: ResponseAlreadySentError: A response has already been sent for this request

when running network test locally. I'm looking into it.