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

defaultdb integration test failure #21

Open
Inveracity opened this issue Aug 26, 2023 · 0 comments
Open

defaultdb integration test failure #21

Inveracity opened this issue Aug 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Inveracity
Copy link
Owner

Reproduce:

docker compose up --build

Result

integration-test  | tests/functional/test_table_db_mod.py::TestDbDefault::test_db_default 
integration-test  | FAILED [ 57%]
integration-test  | 
integration-test  | 
integration-test  | =================================== FAILURES ===================================
integration-test  | ________________________ TestDbDefault.test_db_default _________________________
integration-test  | 
integration-test  | self = <tests.functional.test_table_db_mod.TestDbDefault object at 0x7fde5adf6d90>
integration-test  | conn = <rethinkdb.net.DefaultConnection object at 0x7fde5a916810>
integration-test  | 
integration-test  |     def test_db_default(self, conn):
integration-test  |         expected = {"id": "x"}
integration-test  | >       result = r.table("one_x").get("x").run(conn)
integration-test  | 
integration-test  | tests/functional/test_table_db_mod.py:121: 
integration-test  | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
integration-test  | /usr/local/lib/python3.11/site-packages/rethinkdb/ast.py:154: in run
integration-test  |     return c._start(self, **global_optargs)
integration-test  | /usr/local/lib/python3.11/site-packages/rethinkdb/net.py:749: in _start
integration-test  |     return self._instance.run_query(q, global_optargs.get("noreply", False))
integration-test  | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
integration-test  | 
integration-test  | self = <rethinkdb.net.ConnectionInstance object at 0x7fde5a917650>
integration-test  | query = <rethinkdb.net.Query object at 0x7fde5a015f50>, noreply = False
integration-test  | 
integration-test  |     def run_query(self, query, noreply):
integration-test  |         self._socket.sendall(query.serialize(self._parent._get_json_encoder(query)))
integration-test  |         if noreply:
integration-test  |             return None
integration-test  |     
integration-test  |         # Get response
integration-test  |         res = self._read_response(query)
integration-test  |     
integration-test  |         if res.type == pResponse.SUCCESS_ATOM:
integration-test  |             return maybe_profile(res.data[0], res)
integration-test  |         elif res.type in (pResponse.SUCCESS_PARTIAL, pResponse.SUCCESS_SEQUENCE):
integration-test  |             cursor = DefaultCursor(self, query, res)
integration-test  |             return maybe_profile(cursor, res)
integration-test  |         elif res.type == pResponse.WAIT_COMPLETE:
integration-test  |             return None
integration-test  |         elif res.type == pResponse.SERVER_INFO:
integration-test  |             return res.data[0]
integration-test  |         else:
integration-test  | >           raise res.make_error(query)
integration-test  | E           rethinkdb.errors.ReqlOpFailedError: Database `test` does not exist in:
integration-test  | E           r.table('one_x').get('x')
integration-test  | E           ^^^^^^^^^^^^^^^^^^^^^^^^^
integration-test  | 
integration-test  | /usr/local/lib/python3.11/site-packages/rethinkdb/net.py:578: ReqlOpFailedError
integration-test  | ---------------------------- Captured stdout setup -----------------------------
integration-test  | Removing file /tmp/tmpmnpvwt5m/db/5e781001-4a91-4920-aada-0c705ae869f5
integration-test  | Removing file /tmp/tmpmnpvwt5m/db/f238f9d4-dd1e-41d0-9041-ca2a18f25021
integration-test  | 
integration-test  | ---------- coverage: platform linux, python 3.11.5-final-0 -----------
integration-test  | Name                            Stmts   Miss  Cover
integration-test  | ---------------------------------------------------
integration-test  | rethinkdb_mock/__init__.py          1      0   100%
integration-test  | rethinkdb_mock/ast.py             692    358    48%
integration-test  | rethinkdb_mock/ast_base.py        215    156    27%
integration-test  | rethinkdb_mock/db.py              287    207    28%
integration-test  | rethinkdb_mock/joins.py            28     24    14%
integration-test  | rethinkdb_mock/rql_rewrite.py     203    120    41%
integration-test  | rethinkdb_mock/rtime.py            35     25    29%
integration-test  | rethinkdb_mock/scope.py            31     22    29%
integration-test  | rethinkdb_mock/util.py            313    195    38%
integration-test  | ---------------------------------------------------
integration-test  | TOTAL                            1805   1107    39%
integration-test  | 
integration-test  | =========================== short test summary info ============================
integration-test  | FAILED tests/functional/test_table_db_mod.py::TestDbDefault::test_db_default
integration-test  | !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
integration-test  | ================== 1 failed, 175 passed in 207.71s (0:03:27) ===================

hey @NefixEstrada
this failure pops up when running the integration tests against RethinkDB 2.4.2, I'm not entirely sure how to fix it, also I'm going to add you as a contributor to this repository

@Inveracity Inveracity added the bug Something isn't working label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant