Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Setting timeout to 1 second #20

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

SidHarder
Copy link
Contributor

The setTimeout() function in the read-write.js file was set to 200 milliseconds. My tests were failing on a slower maching so I set the timeout to 1 second to give time for the write operation to finish.

@Kubuxu
Copy link

Kubuxu commented Feb 7, 2017

In go-ipfs when we have to check something after timeout, we usually do polling with interval with some maximum timeout, as js test suits grows waiting might be the slowing factor. I am not saying that this PR should implement something like that but I am suggesting creation of such utility function and latter replacement of straight up waits will polls.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants