Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12758: Fix seeds test to not need DatabaseCleaner #5662

Merged
merged 1 commit into from Dec 10, 2015

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Dec 10, 2015

This fixes failures that occur on Postgres 8.4 from primary key
failures.

@ehelms
Copy link
Member Author

ehelms commented Dec 10, 2015

@parthaa @daviddavis could you please review this? My testing on an EL6 devel box indicated this would fix the issue. Currently, I have test_katello_core locked to EL7 boxes only so I can relax that in hopes this hits as an EL6 box, or you can test it out yourselves.

class SeedsTest < ActiveSupport::TestCase
setup do
# Disable AR transactional fixtures as we use DatabaseCleaner's truncation
# to empty the DB of fixtures for testing the seed script
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove these comments?

@daviddavis
Copy link
Contributor

ACK from me

@parthaa
Copy link
Contributor

parthaa commented Dec 10, 2015

apj

This fixes failures that occur on Postgres 8.4 from primary key
failures.
@ehelms
Copy link
Member Author

ehelms commented Dec 10, 2015

Comments removed

ehelms added a commit that referenced this pull request Dec 10, 2015
Fixes #12758: Fix seeds test to not need DatabaseCleaner
@ehelms ehelms merged commit 5d13884 into Katello:master Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants