Skip to content

Commit

Permalink
chore(ci): fix some flaky test (#16980)
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason authored Dec 1, 2024
1 parent 2bb93bf commit b58d1eb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,22 @@ SELECT substr(DATE_ADD(month, 1, now())::String, 11)=substr(now()::String, 11);

# format: 11
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 6,2)=substr(now()::String, 6, 2)+1;
SELECT substr(DATE_ADD(month, 1, now())::String, 6, 2) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN '01'
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

# format: 2024
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 1,4)=substr(now()::String, 1,4);
SELECT
substr(DATE_ADD(month, 1, now())::String, 1,4) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN (substr(now()::String, 1, 4)::int + 1)::String
ELSE substr(now()::String, 1, 4)
END;
----
1

Expand Down Expand Up @@ -938,13 +947,21 @@ SELECT substr(DATE_ADD(month, 1, now())::String, 11)=substr(now()::String, 11);

# format: 11
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 6,2)=substr(now()::String, 6, 2)+1;
SELECT substr(DATE_ADD(month, 1, now())::String, 6, 2) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN '01'
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

# format: 2024
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 1,4)=substr(now()::String, 1,4);
SELECT substr(DATE_ADD(month, 1, now())::String, 1, 4) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN (substr(now()::String, 1,4)::int+1)::String
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -756,13 +756,21 @@ SELECT substr(DATE_ADD(month, 1, now())::String, 11)=substr(now()::String, 11);

# format: 11
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 6,2)=substr(now()::String, 6, 2)+1;
SELECT substr(DATE_ADD(month, 1, now())::String, 6, 2) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN '01'
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

# format: 2024
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 1,4)=substr(now()::String, 1,4);
SELECT substr(DATE_ADD(month, 1, now())::String, 1, 4) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN (substr(now()::String, 1,4)::int+1)::String
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

Expand Down Expand Up @@ -802,13 +810,21 @@ SELECT substr(DATE_ADD(month, 1, now())::String, 11)=substr(now()::String, 11);

# format: 11
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 6,2)=substr(now()::String, 6, 2)+1;
SELECT substr(DATE_ADD(month, 1, now())::String, 6, 2) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN '01'
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

# format: 2024
query T
SELECT substr(DATE_ADD(month, 1, now())::String, 1,4)=substr(now()::String, 1,4);
SELECT substr(DATE_ADD(month, 1, now())::String, 1, 4) =
CASE
WHEN substr(now()::String, 6, 2) = '12' THEN (substr(now()::String, 1,4)::int+1)::String
ELSE (substr(now()::String, 6, 2)::int + 1)::String
END;
----
1

Expand Down

0 comments on commit b58d1eb

Please sign in to comment.