Skip to content

Add tethering tests#36

Merged
EddyTheCo merged 2 commits into
amarula:developfrom
EddyTheCo:add_tethering_tests
May 14, 2026
Merged

Add tethering tests#36
EddyTheCo merged 2 commits into
amarula:developfrom
EddyTheCo:add_tethering_tests

Conversation

@EddyTheCo
Copy link
Copy Markdown
Contributor

No description provided.

EddyTheCo added 2 commits May 14, 2026 09:49
Signed-off-by: Eduardo Gonzalez <eduardo.gonzalez@amarulasolutions.com>
Signed-off-by: Eduardo Gonzalez <eduardo.gonzalez@amarulasolutions.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the tethering frequency setter to use a signed 32-bit integer variant and introduces new unit tests for enabling and disabling tethering. The review feedback highlights a type mismatch in the frequency setter, the incorrect use of assertion macros within asynchronous lambdas, potential race conditions in the test execution flow, and the need for better handling of environment-specific hardware dependencies in tests.

Comment thread src/dbus/gconnman_technology.cpp
Comment thread tests/gconnman_tech_test.cpp
Comment thread tests/gconnman_tech_test.cpp
}
});
}
ASSERT_TRUE(called) << "setTethering callback was never called";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

This assertion will fail if no Wifi technology is found on the system, as called will remain false. This makes the test suite dependent on the host environment's hardware configuration. Consider checking for the existence of a Wifi technology and skipping the test (or marking it as successful/inconclusive) if none is found, rather than failing.

@github-actions
Copy link
Copy Markdown

🧩 Build Artifacts

✅ The following build artifacts were produced:

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

Comment thread src/dbus/gconnman_technology.cpp
@EddyTheCo EddyTheCo merged commit b5e8571 into amarula:develop May 14, 2026
2 checks passed
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.

1 participant