Skip to content

Tests: Flakyness within "doctests/itests.txt" and "doctests/client.txt" #629

Closed
@amotl

Description

@amotl

Hi there,

while working on #388, I just observed tests within doctests/itests.txt might be flaky [1]. The test has been run on GHA/macOS.

Failure in test /Users/runner/work/crate-python/crate-python/src/crate/client/sqlalchemy/doctests/itests.txt
Failed doctest test for itests.txt
  File "/Users/runner/work/crate-python/crate-python/src/crate/client/sqlalchemy/doctests/itests.txt", line 0

----------------------------------------------------------------------
File "/Users/runner/work/crate-python/crate-python/src/crate/client/sqlalchemy/doctests/itests.txt", line 146, in itests.txt
Failed example:
    result.rowcount
Expected:
    10
Got:
    4

Maybe we should run a REFRESH TABLE xxx here instead of just sleeping for a while?

>>> sleep(2) # give crate some time to settle

With kind regards,
Andreas.

[1] https://github.com/crate/crate-python/runs/1358981202?check_suite_focus=true#step:5:142

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions