Skip to content

Fix flaky test in releases_controller_spec.rb

Stan Hu requested to merge sh-improve-releases-factory-tag into master

Multiple release objects would be created in the test with the same tag (v1.1.0), which caused random failures, depending on what the database returned for Releases.find_by_tag!. Since there is no uniqueness constraint, we fix this problem by turning the tag field into a sequence.

Closes #37372 (closed)

Edited by Yorick Peterse

Merge request reports