Skip to content

Conversation

@cs-endo
Copy link
Contributor

@cs-endo cs-endo commented Oct 23, 2020

No description provided.

For whatever reason hasDependency and isAwardedTo slow the page down - this just means that unnecessary testing is avoided by putting the quicker tests earlier
Comment on lines +315 to +317
if ($status->canAward($by)
&& $status->hasDependency($to)
&& $status->canAward($by)
&& (!$status->isAwardedTo($to))
Copy link
Member

Choose a reason for hiding this comment

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

Explain?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason if you run canAward without the other tests it runs smoothly. Obviously I can't just remove the tests so I just put that one first so when that fails it doesn't test the other ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants