Skip to content

Commit 75a7b2b

Browse files
committed
enhance tests
Signed-off-by: xxchan <[email protected]>
1 parent eec735a commit 75a7b2b

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

sqllogictest/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,11 +1341,11 @@ select * from foo;
13411341

13421342
#[test]
13431343
fn test_statement_retry() {
1344-
parse_roundtrip::<DefaultColumnType>("../tests/retry/statement_retry.slt")
1344+
parse_roundtrip::<DefaultColumnType>("../tests/no_run/statement_retry.slt")
13451345
}
13461346

13471347
#[test]
13481348
fn test_query_retry() {
1349-
parse_roundtrip::<DefaultColumnType>("../tests/retry/query_retry.slt")
1349+
parse_roundtrip::<DefaultColumnType>("../tests/no_run/query_retry.slt")
13501350
}
13511351
}

tests/no_run/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tests in this directory are not run. They are used only for testing the parser.

tests/no_run/system_retry.slt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
system ok retry 3 backoff 5s
2+
echo "hello"
3+
----
4+
hell

tests/slt/retry.slt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
query I retry 3 backoff 0s
2+
select counter()
3+
----
4+
3
5+
6+
system ok retry 3 backoff 1ms1ns
7+
echo "hello"
8+
----
9+
hello

0 commit comments

Comments
 (0)