Skip to content

Errors when running tests the first time #6

Description

@martinheidegger

A bunch of errors are spit out when I run npm test for the first time against a fresh database:

Failed tests:

  2) RethinkDB creates a new connection:

      Timed out (2000ms) - RethinkDB creates a new connection


  4) RethinkDB inserts an item:

      Cannot perform write: primary replica for shard ["", +inf) not available in:
r.db("catbox").table("catbox").insert({
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    id: "someId",
    ^^^^^^^^^^^^^
    value: "asdf",
    ^^^^^^^^^^^^^^
    stored: r.ISO8601("2016-02-24T12:15:44.725Z"),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ttl: 500,
    ^^^^^^^^^
    expiresAt: r.ISO8601("2016-02-24T12:15:45.224Z")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
})
^^


      at /Users/martin/Private/projects/catbox-rethinkdb/test/index.js:80:36

  5) RethinkDB replaces an item:

      Cannot perform write: primary replica for shard ["", +inf) not available in:
r.db("catbox").table("catbox").get("someId").replace({
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    id: "someId",
    ^^^^^^^^^^^^^
    value: "asdf",
    ^^^^^^^^^^^^^^
    stored: r.ISO8601("2016-02-24T12:15:44.779Z"),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ttl: 500,
    ^^^^^^^^^
    expiresAt: r.ISO8601("2016-02-24T12:15:45.279Z")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
})
^^


      at /Users/martin/Private/projects/catbox-rethinkdb/test/index.js:109:36


3 of 36 tests failed
Test duration: 3298 ms
No global variable leaks detected

Those errors disappeared the second time running them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions