Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Test helper now deletes cachegroups wihout relying on order of ids #1107

Merged
merged 2 commits into from
Mar 2, 2016
Merged

Test helper now deletes cachegroups wihout relying on order of ids #1107

merged 2 commits into from
Mar 2, 2016

Conversation

trevorackerman
Copy link
Contributor

No description provided.

$row->delete();

my $cachegroups = $schema->resultset("Cachegroup");
while ( $cachegroups ne 0 ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't need a while here, and comparison isn't right on a couple of levels. use != for numeric comparisons, and ne for string. $cachegroups is an object returned from resultset and not a number. Did you want to use $cachegroups->count() == 0?

dangogh added a commit that referenced this pull request Mar 2, 2016
…-cachegroups

Test helper now deletes cachegroups wihout relying on order of ids
@dangogh dangogh merged commit 91cad15 into Comcast:master Mar 2, 2016
@trevorackerman trevorackerman deleted the to-fix-testhelper-delete-cachegroups branch March 15, 2016 21:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants