Skip to content

test(sharing): sort recipients before asserting in testGetShareWithPublicSecret - #62902

Open
CarlSchwan wants to merge 1 commit into
masterfrom
carl/fix-flaky-test
Open

test(sharing): sort recipients before asserting in testGetShareWithPublicSecret#62902
CarlSchwan wants to merge 1 commit into
masterfrom
carl/fix-flaky-test

Conversation

@CarlSchwan

Copy link
Copy Markdown
Member

The error in question

ApiV1ControllerTest::testGetShareWithPublicSecret with data set #0 (true)
  Failed asserting that two arrays are equal.
  --- Expected
  +++ Actual
  @@ @@
   Array (
  -    'class' => 'Test\Sharing\TestShareRecipientType1'
  -    'value' => 'recipient1'
  +    'class' => 'Test\Sharing\TestShareRecipientTypePublicSecret'
  +    'value' => 'recipient2'
       'instance' => null
  -    'display_name' => 'Recipient 1'
  +    'display_name' => 'Recipient 2'
       'icon' => [...]
       'secret' => Array (
           'updatable' => false
  +        'value' => '47BN3fes63WP0usnjUyF3pUYJh36RHMl'
  +        'url' => 'http://localhost/index.php/s/...36RHMl'
       )
       'initiator' => [...]
   )
  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…blicSecret

The error in question

```diff
ApiV1ControllerTest::testGetShareWithPublicSecret with data set #0 (true)
  Failed asserting that two arrays are equal.
  --- Expected
  +++ Actual
  @@ @@
   Array (
  -    'class' => 'Test\Sharing\TestShareRecipientType1'
  -    'value' => 'recipient1'
  +    'class' => 'Test\Sharing\TestShareRecipientTypePublicSecret'
  +    'value' => 'recipient2'
       'instance' => null
  -    'display_name' => 'Recipient 1'
  +    'display_name' => 'Recipient 2'
       'icon' => [...]
       'secret' => Array (
           'updatable' => false
  +        'value' => '47BN3fes63WP0usnjUyF3pUYJh36RHMl'
  +        'url' => 'http://localhost/index.php/s/...36RHMl'
       )
       'initiator' => [...]
   )
```

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan requested a review from a team as a code owner August 4, 2026 16:42
@CarlSchwan
CarlSchwan requested review from Altahrim, leftybournes, provokateurin and sorbaugh and removed request for a team August 4, 2026 16:42
@CarlSchwan CarlSchwan self-assigned this Aug 4, 2026
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Aug 4, 2026
@CarlSchwan CarlSchwan added this to the Nextcloud 35 milestone Aug 4, 2026
@CarlSchwan

Copy link
Copy Markdown
Member Author

/backport to stable34

@CarlSchwan

Copy link
Copy Markdown
Member Author

/backport to stable33

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.

1 participant