Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Aug 12, 2025

Backport of PR #54371

@nextcloud-bot nextcloud-bot mentioned this pull request Aug 14, 2025
16 tasks
@st3iny
Copy link
Member

st3iny commented Aug 15, 2025

@danxuliu Test failure looks legit:

There was 1 error:

1) OCA\Federation\Tests\TrustedServersTest::testGetServer
ArgumentCountError: Too few arguments to function OCA\Federation\Tests\TrustedServersTest::testGetServer(), 0 passed in /home/runner/work/server/server/vendor-bin/phpunit/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1617 and exactly 2 expected

/home/runner/work/server/server/apps/federation/tests/TrustedServersTest.php:198

@AndyScherzinger AndyScherzinger force-pushed the backport/54371/stable31 branch from 4700e3f to dfe75e2 Compare August 27, 2025 17:11
"array_filter" preserves the keys, so after the trusted servers were
filtered "$server[0]" existed only if the server to get was the first
one in the original array.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu force-pushed the backport/54371/stable31 branch from dfe75e2 to 9b691c2 Compare August 28, 2025 06:32
@danxuliu
Copy link
Member

@danxuliu Test failure looks legit:

There was 1 error:

1) OCA\Federation\Tests\TrustedServersTest::testGetServer
ArgumentCountError: Too few arguments to function OCA\Federation\Tests\TrustedServersTest::testGetServer(), 0 passed in /home/runner/work/server/server/vendor-bin/phpunit/vendor/phpunit/phpunit/src/Framework/TestCase.php on line 1617 and exactly 2 expected

/home/runner/work/server/server/apps/federation/tests/TrustedServersTest.php:198

It was indeed. It was caused by a different syntax for PHPUnit data providers between stable31 and master. Fixed now.

Thanks for the ping and sorry for the delay!

@kesselb kesselb merged commit ed69213 into stable31 Aug 28, 2025
199 of 201 checks passed
@kesselb kesselb deleted the backport/54371/stable31 branch August 28, 2025 07:40
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 4, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants