Skip to content

Commit

Permalink
sleep heartbeat_inter_val + 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-starry-sky committed Sep 13, 2021
1 parent 96465bf commit 03e400f
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 106 deletions.
2 changes: 1 addition & 1 deletion tests/tck/features/expression/Predicate.feature
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Feature: Predicate
"""
CREATE TAG INDEX bachelor_name_index ON bachelor(name(20));
"""
And wait 6 seconds
And wait 2 seconds
When submit a job:
"""
REBUILD TAG INDEX bachelor_name_index
Expand Down
42 changes: 6 additions & 36 deletions tests/tck/features/index/Index.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Feature: IndexTest_Vid_Int
CREATE TAG INDEX disorder_tag_index ON tag_1(col3, col2);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand All @@ -69,21 +69,6 @@ Feature: IndexTest_Vid_Int
hash("Tom"): ("Tom", 18, 11.11, `timestamp`("2000-10-10T10:00:00"))
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX single_tag_index;
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX single_tag_index OFFLINE;
"""
Then a SyntaxError should be raised at runtime:
When executing query:
"""
REBUILD TAG INDEX multi_tag_index;
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX multi_tag_index OFFLINE;
Expand Down Expand Up @@ -210,7 +195,7 @@ Feature: IndexTest_Vid_Int
CREATE EDGE INDEX disorder_edge_1_index ON edge_1(col3, col2)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT EDGE
Expand All @@ -222,21 +207,6 @@ Feature: IndexTest_Vid_Int
hash("May") -> hash("Tim"): ("Like", 18, 11.11, `timestamp`("2000-10-10T10:00:00"))
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX single_edge_index
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX single_edge_index OFFLINE;
"""
Then a SyntaxError should be raised at runtime:
When executing query:
"""
REBUILD EDGE INDEX multi_edge_1_index
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX multi_edge_1_index OFFLINE;
Expand Down Expand Up @@ -557,7 +527,7 @@ Feature: IndexTest_Vid_Int
CREATE TAG INDEX single_person_index ON tag_1(col1)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX tag_1(col1, col2, col3, col4) VALUES 100:(true, 18, 1.1, `timestamp`("2000-10-10T10:00:00"))
Expand All @@ -573,7 +543,7 @@ Feature: IndexTest_Vid_Int
CREATE TAG INDEX single_person_index2 ON tag_1(col5)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX tag_1(col1, col2, col3, col4, col5) VALUES 100:(true, 18, 1.1, `timestamp`("2000-10-10T10:00:00"), 5)
Expand Down Expand Up @@ -708,7 +678,7 @@ Feature: IndexTest_Vid_Int
CREATE TAG INDEX alter_index ON alter_tag(id);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX alter_tag(id) VALUES 100:(1), 200:(2)
Expand All @@ -718,7 +688,7 @@ Feature: IndexTest_Vid_Int
"""
ALTER TAG alter_tag ADD (type int)
"""
And wait 6 seconds
And wait 2 seconds
Then the execution should be successful
When try to execute query:
"""
Expand Down
46 changes: 8 additions & 38 deletions tests/tck/features/index/Index.feature
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Feature: IndexTest_Vid_String
CREATE TAG INDEX disorder_tag_index ON tag_1(col3, col2);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand All @@ -69,21 +69,6 @@ Feature: IndexTest_Vid_String
"Tom": ("Tom", 18, 11.11, `timestamp`("2000-10-10T10:00:00"))
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX single_tag_index;
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX single_tag_index OFFLINE;
"""
Then a SyntaxError should be raised at runtime:
When executing query:
"""
REBUILD TAG INDEX multi_tag_index;
"""
Then the execution should be successful
When executing query:
"""
REBUILD TAG INDEX multi_tag_index OFFLINE;
Expand Down Expand Up @@ -210,7 +195,7 @@ Feature: IndexTest_Vid_String
CREATE EDGE INDEX disorder_edge_1_index ON edge_1(col3, col2)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When executing query:
"""
INSERT EDGE
Expand All @@ -222,21 +207,6 @@ Feature: IndexTest_Vid_String
"May" -> "Tim": ("Like", 18, 11.11, `timestamp`("2000-10-10T10:00:00"))
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX single_edge_index
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX single_edge_index OFFLINE;
"""
Then a SyntaxError should be raised at runtime:
When executing query:
"""
REBUILD EDGE INDEX multi_edge_1_index
"""
Then the execution should be successful
When executing query:
"""
REBUILD EDGE INDEX multi_edge_1_index OFFLINE;
Expand Down Expand Up @@ -714,7 +684,7 @@ Feature: IndexTest_Vid_String
CREATE TAG INDEX alter_index ON alter_tag(id);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX alter_tag(id) VALUES "100":(1), "200":(2)
Expand All @@ -725,7 +695,7 @@ Feature: IndexTest_Vid_String
ALTER TAG alter_tag ADD (type int)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When executing query:
"""
LOOKUP ON alter_tag WHERE alter_tag.id == 1 YIELD alter_tag.type
Expand Down Expand Up @@ -755,7 +725,7 @@ Feature: IndexTest_Vid_String
CREATE TAG INDEX name_tag_index ON name_tag(name(10));
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When submit a job:
"""
REBUILD TAG INDEX;
Expand Down Expand Up @@ -810,7 +780,7 @@ Feature: IndexTest_Vid_String
CREATE TAG INDEX age_tag_index ON age_tag(age);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When submit a job:
"""
REBUILD TAG INDEX id_tag_index, name_tag_index;
Expand Down Expand Up @@ -869,7 +839,7 @@ Feature: IndexTest_Vid_String
CREATE EDGE INDEX name_edge_index ON name_edge(name(10));
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When submit a job:
"""
REBUILD EDGE INDEX;
Expand Down Expand Up @@ -922,7 +892,7 @@ Feature: IndexTest_Vid_String
CREATE EDGE INDEX age_edge_index ON age_edge(age);
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When submit a job:
"""
REBUILD EDGE INDEX id_edge_index,name_edge_index;
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/lookup/ByIndex.feature
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ Feature: Lookup by index itself
CREATE TAG weight (WEIGHT double);
CREATE TAG INDEX weight_index ON weight(WEIGHT);
"""
And wait 6 seconds
And wait 2 seconds
When executing query:
"""
INSERT VERTEX weight(WEIGHT) VALUES "Tim Duncan" : (70.5);
Expand Down
2 changes: 1 addition & 1 deletion tests/tck/features/lookup/ByIndex.intVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ Feature: Lookup by index itself in integer vid
CREATE TAG weight (WEIGHT double);
CREATE TAG INDEX weight_index ON weight(WEIGHT);
"""
And wait 6 seconds
And wait 2 seconds
When executing query:
"""
INSERT VERTEX weight(WEIGHT) VALUES hash("Tim Duncan") : (70.5);
Expand Down
22 changes: 11 additions & 11 deletions tests/tck/features/lookup/LookUp.IntVid.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Feature: LookUpTest_Vid_Int
CREATE TAG INDEX t_index_4 ON lookup_tag_2(col3, col4);
CREATE TAG INDEX t_index_5 ON lookup_tag_2(col4);
"""
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand Down Expand Up @@ -56,7 +56,7 @@ Feature: LookUpTest_Vid_Int
CREATE EDGE INDEX e_index_3 ON lookup_edge_1(col2, col3);
CREATE EDGE INDEX e_index_4 ON lookup_edge_2(col3, col4);
"""
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT EDGE
Expand Down Expand Up @@ -88,7 +88,7 @@ Feature: LookUpTest_Vid_Int
CREATE TAG INDEX t_index_4 ON lookup_tag_2(col3, col4);
CREATE TAG INDEX t_index_5 ON lookup_tag_2(col4);
"""
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand Down Expand Up @@ -238,7 +238,7 @@ Feature: LookUpTest_Vid_Int
CREATE EDGE INDEX e_index_2 ON lookup_edge_2(col2, col3, col4);
CREATE EDGE INDEX e_index_4 ON lookup_edge_2(col3, col4);
"""
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT EDGE
Expand Down Expand Up @@ -383,7 +383,7 @@ Feature: LookUpTest_Vid_Int
CREATE TAG INDEX t_index_4 ON lookup_tag_2(col3, col4);
CREATE TAG INDEX t_index_5 ON lookup_tag_2(col4);
"""
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand Down Expand Up @@ -521,7 +521,7 @@ Feature: LookUpTest_Vid_Int
CREATE TAG teacher(number int, age int)
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand Down Expand Up @@ -586,7 +586,7 @@ Feature: LookUpTest_Vid_Int
"""
CREATE TAG INDEX i5 ON t1(c1, c2, c3, c5)
"""
And wait 6 seconds
And wait 2 seconds
Then the execution should be successful
When executing query:
"""
Expand Down Expand Up @@ -670,7 +670,7 @@ Feature: LookUpTest_Vid_Int
"""
CREATE TAG INDEX i5_str ON t1_str(c1, c2, c3(30), c4(30))
"""
And wait 6 seconds
And wait 2 seconds
Then the execution should be successful
When executing query:
"""
Expand Down Expand Up @@ -735,7 +735,7 @@ Feature: LookUpTest_Vid_Int
CREATE TAG INDEX i3_with_str ON tag_with_str(c1, c2(30), c3(30))
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX
Expand Down Expand Up @@ -807,7 +807,7 @@ Feature: LookUpTest_Vid_Int
identity(BIRTHDAY, NATION(30), BIRTHPLACE_CITY(30))
"""
Then the execution should be successful
And wait 6 seconds
And wait 2 seconds
When try to execute query:
"""
INSERT VERTEX identity (BIRTHDAY, NATION, BIRTHPLACE_CITY) VALUES 1:(19860413, "汉族", "aaa")
Expand All @@ -832,7 +832,7 @@ Feature: LookUpTest_Vid_Int
"""
CREATE TAG player(name string, age int);
"""
And wait 6 seconds
And wait 2 seconds
When executing query:
"""
INSERT VERTEX player(name, age) VALUES hash('Tim'):('Tim', 20);
Expand Down
Loading

0 comments on commit 03e400f

Please sign in to comment.