Skip to content

Commit

Permalink
fix: incorrect deprecation when test is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dat Nguyen committed Mar 4, 2024
1 parent c7635d6 commit a45724b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diqu/packages/include/dq_tools__get_test_results.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final as (

select latest_status.test_id
,case
when datediff(day, latest_status.check_timestamp, sysdate()) >= $deprecated_window_in_days then 'deprecate'
when test_status != 'pass' and datediff(day, latest_status.check_timestamp, sysdate()) >= $deprecated_window_in_days then 'deprecate'
else latest_status.test_status
end as test_status_add_deprecation
,case
Expand Down

0 comments on commit a45724b

Please sign in to comment.