Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit 773fcbd

Browse files
Remove unnecessary delays before closing sessions and clients in tests (#278)
## What is the goal of this PR? We clean up the delays that were introduced as a workaround to a segmentation fault in a much older version of Grakn. Current versions of TypeDB don't exhibit the faulty behaviour. ## What are the changes implemented in this PR? The delays were prompted by typedb/typedb#6135, which appears to have been resolved.
1 parent a45f40f commit 773fcbd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/behaviour/background/environment_base.py

-8
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
# specific language governing permissions and limitations
1919
# under the License.
2020
#
21-
import time
22-
2321
from behave.model_core import Status
2422
from typedb.client import *
2523

@@ -77,9 +75,6 @@ def after_scenario(context: Context, scenario):
7775
if scenario.status == Status.skipped:
7876
return
7977

80-
#TODO: REMOVE THIS ONCE THE CRASHES ARE FIXED
81-
time.sleep(0.01)
82-
8378
for session in context.sessions:
8479
session.close()
8580
for future_session in context.sessions_parallel:
@@ -89,7 +84,4 @@ def after_scenario(context: Context, scenario):
8984

9085

9186
def after_all(context: Context):
92-
#TODO: REMOVE THIS ONCE THE CRASHES ARE FIXED
93-
time.sleep(0.01)
94-
9587
context.client.close()

0 commit comments

Comments
 (0)