Skip to content

Fix uPnP test#1719

Closed
matislovas wants to merge 1 commit intomainfrom
matislovas/upnp_start_after_wg_port_take_2
Closed

Fix uPnP test#1719
matislovas wants to merge 1 commit intomainfrom
matislovas/upnp_start_after_wg_port_take_2

Conversation

@matislovas
Copy link
Copy Markdown
Collaborator

@matislovas matislovas commented Mar 20, 2026

Problem

When battery optimization is on, upnp provider does not react to pause(), hence - it can create mappings even when paused.

Solution

Differentiate the test for battery_optimisation.

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • Functionality is covered by unit or integration tests

@matislovas matislovas requested a review from a team as a code owner March 20, 2026 08:14
@matislovas matislovas force-pushed the matislovas/upnp_start_after_wg_port_take_2 branch from 8a942e5 to bb317cb Compare March 20, 2026 08:14
Comment on lines +271 to +272
# With battery optiization disabl;ed, the uPnP pause() is inactive, so
# the port mappings can be created, even with paused provider
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typos: optiization, disabl;ed

# With battery optiization disabl;ed, the uPnP pause() is inactive, so
# the port mappings can be created, even with paused provider
if not battery_optimization:
assert (len(mappings_search) <= 4) and (len(mappings_search) >= 2)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you please explain where 2 or 4 is coming from?

…n nat-lab test

Signed-off-by: Matas Misiunas <matislovas@gmail.com>
@matislovas matislovas force-pushed the matislovas/upnp_start_after_wg_port_take_2 branch from bb317cb to 0b96807 Compare March 20, 2026 16:45
@matislovas matislovas closed this Mar 25, 2026
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.

2 participants