Skip to content
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

[test] resolve sleep20 test failures. #2669

Merged
merged 1 commit into from
Jul 26, 2023
Merged

[test] resolve sleep20 test failures. #2669

merged 1 commit into from
Jul 26, 2023

Conversation

XuGuohui
Copy link
Member

Problem

wiring/sleep20 test failures:

  • Test 12_System_Sleep_With_Configuration_Object_Hibernate_Mode_Bypass_Network_Off_Execution_Time [Photon2]
  • Test 33_System_Sleep_With_Configuration_Object_Stop_Mode_Execution_Time [Argon/Photon2]
  • Test 34_System_Sleep_With_Configuration_Object_Ultra_Low_Power_Mode_Wakeup_Execution_Time [Argon/Photon2]
  • Test 35_System_Sleep_With_Configuration_Object_Network_Power_State_Consistent_Off [ Argon/Photon2]

Completeness

  • User is totes amazing for contributing!
  • Contributor has signed CLA (Info here)
  • Problem and Solution clearly stated
  • Run unit/integration/application tests on device
  • Added documentation
  • Added to CHANGELOG.md after merging (add links to docs and issues)

@XuGuohui XuGuohui added this to the 5.4.1 milestone Jul 12, 2023
// Make sure the modem is off first
Serial.println(" >> Powering off the modem...");
#if HAL_PLATFORM_CELLULAR
Cellular.off();
assertTrue(waitFor(Cellular.isOff, 60000));
Serial.println(" >> Powering on the modem...");
Cellular.on();
if (i == 1) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@avtolstoy Could you remind me why I was adding this loop and check? 😢

Copy link
Member

Choose a reason for hiding this comment

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

No idea honestly :)

// Make sure the modem is off first
Serial.println(" >> Powering off the modem...");
#if HAL_PLATFORM_CELLULAR
Cellular.off();
assertTrue(waitFor(Cellular.isOff, 60000));
Serial.println(" >> Powering on the modem...");
Cellular.on();
if (i == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

No idea honestly :)

@XuGuohui XuGuohui merged commit f02a473 into develop Jul 26, 2023
1 check passed
@XuGuohui XuGuohui deleted the fix/test_sleep20 branch July 26, 2023 06:52
@scott-brust scott-brust modified the milestones: 5.4.1, 5.5.0-rc.1 Jul 28, 2023
technobly pushed a commit that referenced this pull request Sep 18, 2023
[test] resolve sleep20 test failures.
technobly pushed a commit that referenced this pull request Sep 18, 2023
[test] resolve sleep20 test failures.
technobly pushed a commit that referenced this pull request Sep 19, 2023
[test] resolve sleep20 test failures.
@technobly technobly mentioned this pull request Sep 21, 2023
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.

4 participants