You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
…ing for both core and cloud (#670)
## Usage and product changes
We fix the issue #669,
where the Python Driver didn't close the connection when calling
`TypeDBDriver.close()`.
## Implementation
We needed to reverse the condition of `is_open()`.
The main issue is the absence of tests for our drivers' connections, so
we:
* add new integration tests for both core and cloud;
* create an issue for behaviour tests to cover this hole for a brighter
future: typedb/typedb-behaviour#289.
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, afterconnection closes
fromuser.feature
. We only have a positive stepconnection 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:
We might also deprecate
connection has been opened
The text was updated successfully, but these errors were encountered: