Skip to content

Commit

Permalink
Added retries to query executions in some tck cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
xtcyclist committed Sep 3, 2022
1 parent 9a70bcf commit 8fd79f6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/tck/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ def executing_query_with_retry(query, exec_ctx, request, secs, retryTimes):
res = exec_ctx["result_set"]
if not res.is_succeeded():
retryCounter = 0
pdb.set_trace()
while retryCounter < retryTimes:
time.sleep(secs)
exec_query(request, ngql, exec_ctx)
Expand Down
4 changes: 2 additions & 2 deletions tests/tck/features/delete/DeleteVertexWithoutEdge.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: delete vertex without edge
CREATE EDGE e();
"""
And wait 6 seconds
When executing query:
When executing query and retrying it on failure every 6 seconds for 3 times:
"""
INSERT VERTEX t(id) VALUES 1:(1),2:(2),3:(3);
INSERT EDGE e() VALUES 1->2:(),1->3:();
Expand Down Expand Up @@ -74,7 +74,7 @@ Feature: delete vertex without edge
CREATE EDGE e();
"""
And wait 6 seconds
When executing query:
When executing query and retrying it on failure every 6 seconds for 3 times:
"""
INSERT VERTEX t(id) VALUES 1:(1),2:(2),3:(2);
INSERT EDGE e() VALUES 1->2:(),1->3:();
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/insert/Insert.feature
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ Feature: Insert string vid of vertex and edge
"""
And wait 6 seconds
# test insert vertex
When try to execute query:
When try to execute query and retrying it on failure every 6 seconds for 3 times:
"""
INSERT VERTEX person(id) VALUES "100":(1), "200":(1)
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/insert/insertVertexOnly.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Feature: insert vertex without tag
CREATE EDGE e();
"""
And wait 6 seconds
When executing query:
When executing query and retrying it on failure every 6 seconds for 3 times:
"""
INSERT VERTEX VALUES 1:(),2:(),3:();
INSERT EDGE e() VALUES 1->2:(),2->3:();
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/lookup/LookupTag2.feature
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Feature: Test lookup on tag index 2
Then drop the used space

Scenario Outline: [tag] scan without hints
When executing query:
When executing query and retrying it on failure every 6 seconds for 3 times:
"""
LOOKUP ON
lookup_tag_1
Expand Down

0 comments on commit 8fd79f6

Please sign in to comment.