Skip to content

fix: dont destroy with owner not being honored when client exits [Test Backport of 3477] #3478

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

Merged

Conversation

NoelStephensUnity
Copy link
Collaborator

The v1.x branch does not have the same issue as #3477. This PR is only the backport of the test added to 3477 to assure we have the same kind of coverage in both versions.

Changelog

NA

Testing and Documentation

  • Includes integration test NetworkObjectDontDestroyWithOwnerTests.NetworkShowThenClientDisconnects.
  • No documentation changes or additions were necessary.

Backport

This is a test-only backport of #3477.

Backporting the same test added to 3477 to assure we have the same kind of coverage in v1.x.
Copy link
Collaborator

@EmandM EmandM left a comment

Choose a reason for hiding this comment

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

I love a backported test

@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) June 2, 2025 21:29
@NoelStephensUnity NoelStephensUnity merged commit e125938 into develop Jun 3, 2025
40 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/dont-destroy-with-owner-backport-3477 branch June 3, 2025 00:00
EmandM pushed a commit that referenced this pull request Jun 3, 2025
)

Based on issue #3472, this PR resolves the issue where the
`NetworkObject.DontDestroyWithOwner` was not being honored.

<!-- Add short version of the JIRA ticket to the PR title (e.g. "feat:
new shiny feature [MTT-123]") -->

## Changelog

- Fixed: Issue where the `NetworkObject.DontDestroyWithOwner` was not
being honored.

## Testing and Documentation

- Includes integration test
`NetworkObjectDontDestroyWithOwnerTests.NetworkShowThenClientDisconnects`.
- No documentation changes or additions were necessary.


<!-- Uncomment and mark items off with a * if this PR deprecates any
API:
### Deprecated API
- [ ] An `[Obsolete]` attribute was added along with a `(RemovedAfter
yyyy-mm-dd)` entry.
- [ ] An [api updater] was added.
- [ ] Deprecation of the API is explained in the CHANGELOG.
- [ ] The users can understand why this API was removed and what they
should use instead.
-->

## Backport
The v1.x branch does no have this issue, but went ahead and backported
the test in #3478.

<!-- If this is a backport:
 - Add the following to the PR title: "\[Backport\] ..." .
 - Link to the original PR.
If this needs a backport - state this here
If a backport is not needed please provide the reason why.
If the "Backports" section is not present it will lead to a CI test
failure.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants