WordPress.org

Make WordPress Core

Opened 14 months ago

Last modified 13 months ago

#38237 assigned task (blessed)

Increase the slow test threshold for tests that perform external HTTP requests

Reported by: johnbillion Owned by: johnbillion
Milestone: Future Release Priority: normal
Severity: normal Version: 4.4
Component: Build/Test Tools Keywords: ongoing
Focuses: Cc:

Description

Tests that perform external HTTP requests will always trigger a slow warning from SpeedTrapListener as core's slow test threshold is set to 150ms.

Let's add a @slowThreshold header to each relevant test with a high value such as 5000ms.

Docs: https://github.com/johnkary/phpunit-speedtrap

See #30017.

Change History (4)

#1 @johnbillion
14 months ago

In 38757:

HTTP API: Convert the POST redirect test to use a dataProvider in order for its speed to be more accurately measured.

See #38237

This ticket was mentioned in Slack in #core by jeffpaul. View the logs.


13 months ago

#3 @jbpaul17
13 months ago

  • Owner set to johnbillion
  • Status changed from new to assigned

#4 @johnbillion
13 months ago

  • Keywords ongoing added
  • Milestone changed from 4.7 to Future Release
  • Type changed from defect (bug) to task (blessed)
Note: See TracTickets for help on using tickets.