Closed TheDr1ver closed 4 months ago
You're totally correct, it is a bug in our logic.
Moreover, it indicates a hole in our tests! I've created an issue for behaviour tests to prevent it from happening in the future, and I'll add an integration test for this driver with the fix.
Thanks for noticing it! The fix for this issue will be a part of the next release (hopefully by the end of the next week).
https://github.com/vaticle/typedb-driver/blob/6cfb17d2561f5d6f17aeecf8d14592ef22874572/python/typedb/connection/driver.py#L96
shouldn't this line be
if self.is_open()
instead ofif not self.is_open()
?Otherwise if you run
client.close()
followed byclient.is_open()
it still shows the client as being open... effectivelyclient.close()
isn't doing anything right now as far as I can tell.