Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport the cache warmer test fix #6616

Merged
merged 1 commit into from Dec 11, 2023

Conversation

fritzmg
Copy link
Contributor

@fritzmg fritzmg commented Dec 10, 2023

#6612 for 4.13.

Description
-----------

The array key order is not deterministic, therefore the test failed: https://github.com/contao/contao/actions/runs/7128661169/job/19411055590

We could also solve this by adding the following code in line 173:

```php
        ksort($processed);

        foreach ($processed as &$value) {
            krsort($value);
        }
```

I don't know whether this optimizes anything other than the unit tests though.

Commits
-------

2780095 Fix the cache warmer test
@fritzmg fritzmg added the bug label Dec 10, 2023
@fritzmg fritzmg added this to the 4.13 milestone Dec 10, 2023
@fritzmg fritzmg self-assigned this Dec 10, 2023
@fritzmg fritzmg changed the base branch from 5.x to 4.13 December 10, 2023 17:39
@leofeyer leofeyer changed the title Backport cache warmer test fix Backport the cache warmer test fix Dec 11, 2023
@leofeyer leofeyer merged commit bfe21e7 into contao:4.13 Dec 11, 2023
1 check passed
@leofeyer
Copy link
Member

Thank you @fritzmg.

@fritzmg fritzmg deleted the backpot-cache-warmer-test-fix branch December 11, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants