tests: make caddy_tests faster. by AlliBalliBaba · Pull Request #1823 · php/frankenphp

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@AlliBalliBaba

Copy link Copy Markdown

Contributor

This PR makes tests fast by removing the 10s sleep added in #1540 😅

"github.com/stretchr/testify/assert"
)

func TestAllCommonHeadersAreCorrect(t *testing.T) {
Copy link Copy Markdown

Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also moved this test to the phpheaders module since it won't break compilation anymore in go 1.25

@AlliBalliBaba AlliBalliBaba changed the title tests: Make caddy_tests faster. tests: make caddy_tests faster.

Aug 23, 2025
Copy link Copy Markdown

Member

@alexandre-daubois alexandre-daubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🙂

@dunglas dunglas merged commit 2b78ffe into main

Aug 25, 2025

22 checks passed

@dunglas dunglas deleted the fix/slow-tests branch

August 25, 2025 14:16

@dunglas

Copy link Copy Markdown

Member

dunglas commented

Aug 25, 2025

Thanks!

henderkes pushed a commit to static-php/frankenphp that referenced this pull request

Sep 11, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dunglas dunglas dunglas approved these changes

@alexandre-daubois alexandre-daubois alexandre-daubois approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@AlliBalliBaba @dunglas @alexandre-daubois