From cb6e9f482ee6e2ee4506c37ca70cedf7e37a613d Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 31 Mar 2025 11:50:50 -0500 Subject: [PATCH] Tests: Reduce chance of time offsets See https://github.com/Automattic/wordpress-activitypub/actions/runs/14176817608/job/39713607394?pr=1521 --- tests/includes/scheduler/class-test-actor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/includes/scheduler/class-test-actor.php b/tests/includes/scheduler/class-test-actor.php index c6ad62e93..101dbbdbe 100644 --- a/tests/includes/scheduler/class-test-actor.php +++ b/tests/includes/scheduler/class-test-actor.php @@ -319,6 +319,6 @@ public function test_actor_profile_update_sets_updated_attribute() { // Verify the updated attribute is set and matches the post's modified date. $expected_updated = gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) ); - $this->assertEquals( $expected_updated, $activity['updated'] ); + $this->assertEqualsWithDelta( $expected_updated, $activity['updated'], 2, 'Updated attribute does not match post modified date.' ); } }