Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests on Cloud9 workspace #186

Closed
KennethHolmSeelig opened this issue Feb 6, 2017 · 3 comments
Closed

Running tests on Cloud9 workspace #186

KennethHolmSeelig opened this issue Feb 6, 2017 · 3 comments
Labels

Comments

@KennethHolmSeelig
Copy link

KennethHolmSeelig commented Feb 6, 2017

I'm trying to run the test orbit-db/test/replicate.test.js and have restricted it to run with the IpfsNodeDaemon.

[IpfsNodeDaemon].forEach((IpfsDaemon) => {
instead of
[IpfsNativeDaemon].forEach((IpfsDaemon) => {

But it times out 'waiting for peers'.

All other tests pass and I am using Node 6.1.0 like on the passing CircleCi build.
I have tried running on the same image as CircleCi uses for the passing test, but the image is too big for my little Docker workspace, but the same tests fail on other Ubuntu images.

what am I missing?

$ npm test

  108 passing (2m)
  2 failing

  1) orbit-db replication two peers replicates database of 1 entry:
     Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
  

  2) orbit-db replication two peers replicates database of 100 entries:
     Error: Timeout of 40000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

Edited: for more information

@haadcode
Copy link
Member

Apologies for missing this one completely!

If you'd care to try again from master, you should find the tests passing now. We just released a new version of orbit-db with many fixes and updates and the replication overall has been improved.

Let me know if this was fixed or if there's more I can do to help get it working!

@haadcode haadcode added the bug label Mar 22, 2017
@KennethHolmSeelig
Copy link
Author

Works with IpfsNodeDaemon, which I needed, thanks!

@haadcode
Copy link
Member

Awesome! Closing this, then. Feel free to re-open it if you have any more issues.

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

No branches or pull requests

2 participants