Skip to content

Fix date-dependent test failure in obsolete_ignored_columns_spec.rb

Stan Hu requested to merge sh-fix-obsolete-column-date-boundary-test into master

If spec/lib/gitlab/database/obsolete_ignored_columns_spec.rb is loaded before a date boundary and execute after the boundary has crossed, the test will fail with an extra column because Date.today has advanced. To fix this problem, we fix the dates used in the test.

Seen in https://gitlab.com/gitlab-org/gitlab/-/jobs/381262438.

Closes #118612 (closed)

Edited by Stan Hu

Merge request reports