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.' ); } }