Skip to content

Commit

Permalink
Fix far future headers tests failing due to updated error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ink0 committed Jan 9, 2025
1 parent 17d380e commit 200b518
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public function test_status_messages(): void {
);

$this->assertEquals( 'recommended', $result['final_status'] );
$this->assertEquals( 'max-age below threshold', $result['details'][0]['reason'] );
$this->assertEquals( 'expires below threshold', $result['details'][1]['reason'] );
$this->assertStringContainsString( 'max-age below threshold (actual:', $result['details'][0]['reason'] );
$this->assertStringContainsString( 'expires below threshold (actual:', $result['details'][1]['reason'] );
$this->assertEquals( 'No far-future headers but conditionally cached', $result['details'][2]['reason'] );
$this->assertEquals( 'No far-future headers and no conditional caching', $result['details'][3]['reason'] );
}
Expand Down Expand Up @@ -135,9 +135,9 @@ static function () {
);

$this->assertEquals( 'recommended', $result['final_status'] );
$this->assertEquals( 'max-age below threshold', $result['details'][0]['reason'] );
$this->assertEquals( 'expires below threshold', $result['details'][1]['reason'] );
$this->assertEquals( 'max-age below threshold', $result['details'][2]['reason'] );
$this->assertStringContainsString( 'max-age below threshold (actual:', $result['details'][0]['reason'] );
$this->assertStringContainsString( 'expires below threshold (actual:', $result['details'][1]['reason'] );
$this->assertStringContainsString( 'max-age below threshold (actual:', $result['details'][2]['reason'] );
}

/**
Expand Down

0 comments on commit 200b518

Please sign in to comment.