Skip to content

Commit 5534c0d

Browse files
Merge branch 'trunk' into update/dci-test-coverage
2 parents b881254 + 2e2749d commit 5534c0d

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@wordpress/scripts": "^30.12.0",
1818
"commander": "13.1.0",
1919
"copy-webpack-plugin": "^13.0.0",
20-
"css-minimizer-webpack-plugin": "^7.0.0",
20+
"css-minimizer-webpack-plugin": "^7.0.2",
2121
"fast-glob": "^3.3.3",
2222
"fs-extra": "^11.3.0",
2323
"husky": "^9.1.7",

plugins/optimization-detective/tests/test-class-od-url-metrics-group.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ public function test_get_lcp_element_when_group_half_stale( bool $order_reversed
450450
$url_metrics = array();
451451
$etag_counts = array();
452452
foreach ( $url_metrics_data as $url_metric_data ) {
453+
// Make sure the timestamp is always current as otherwise groups will never be complete, regardless of having a current ETag.
454+
$url_metric_data['timestamp'] = microtime( true );
455+
453456
$url_metric = new OD_URL_Metric( $url_metric_data );
454457
$etag = $url_metric->get_etag();
455458
if ( ! isset( $etag_counts[ $etag ] ) ) {

0 commit comments

Comments
 (0)