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.
A bunch of errors are spit out when I run
npm testfor the first time against a fresh database:Those errors disappeared the second time running them.