Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
12162c1f
Commit
12162c1f
authored
15 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
#587634
by mr.baileys and TacoV: Fixed Actions infinite loop test fails.
parent
00b27f69
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/simpletest/tests/actions.test
+7
-6
7 additions, 6 deletions
modules/simpletest/tests/actions.test
with
7 additions
and
6 deletions
modules/simpletest/tests/actions.test
+
7
−
6
View file @
12162c1f
...
...
@@ -94,17 +94,18 @@ class ActionLoopTestCase extends DrupalWebTestCase {
// Delete any existing watchdog messages to clear the plethora of
// "Action added" messages from when Drupal was installed.
db_delete
(
'watchdog'
)
->
execute
();
$this
->
triggerActions
();
//
Clear the log again for another test, this time with a random maximum
.
db_delete
(
'watchdog'
)
->
execute
();
variable_set
(
'actions_max_stack'
,
mt_rand
(
10
,
50
));
// To prevent this test from failing when xdebug is enabled, the maximum
// recursion level should be kept low enough to prevent the xdebug
//
infinite recursion protection mechanism from aborting the request
.
// @see http://drupal.org/node/587634.
variable_set
(
'actions_max_stack'
,
mt_rand
(
3
,
12
));
$this
->
triggerActions
();
}
/**
* Create an infinite loop by causing a watchdog message to be set,
* which causes the actions to be triggered again, up to default of 35 times.
* which causes the actions to be triggered again, up to actions_max_stack
* times.
*/
protected
function
triggerActions
()
{
$this
->
drupalGet
(
'<front>'
,
array
(
'query'
=>
array
(
'trigger_actions_on_watchdog'
=>
TRUE
)));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment