Skip to content

Tests and steps to check if connection is open or closed #289

Description

@farost

Problem to Solve

It looks like we don't have behavior steps that check if the connection is closed after we send the close command, for example, after connection closes from user.feature. We only have a positive step connection has been opened, which is more of a reactive check after we just open the connection.

Even if it's limited for TypeDB itself (I assume that it is not implemented for a reason), it's a crucial logic for TypeDB Drivers. The absence of these tests already resulted in a bug in the Python Driver.

Proposed Solution

Add a test like:

When connection opens with default authentication
Then connection is open
When connection closes
Then connection is closed / is not open

We might also deprecate connection has been opened

Activity

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

Metadata

Metadata

Assignees

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