Skip to content

Commit

Permalink
Merge pull request #2415 from particle-iot/fix/tests
Browse files Browse the repository at this point in the history
[test] improves wiring/no_fixture_long_running NETWORK_XX test timing
  • Loading branch information
technobly committed Mar 31, 2022
2 parents ca5f2ed + f6d6a2c commit 669703f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions user/tests/wiring/no_fixture_long_running/network.cpp
Expand Up @@ -68,7 +68,8 @@ bool udpEchoTest(UDP* udp, const IPAddress& ip, uint16_t port, const uint8_t* se
} // anonymous

test(NETWORK_01_LargePacketsDontCauseIssues_ResolveMtu) {
const system_tick_t WAIT_TIMEOUT = 10 * 60 * 1000;
// 15 min gives the device time to go through a 10 min timeout & power cycle
const system_tick_t WAIT_TIMEOUT = 15 * 60 * 1000;

Network.on();
Network.connect();
Expand Down Expand Up @@ -179,7 +180,8 @@ test(NETWORK_01_LargePacketsDontCauseIssues_ResolveMtu) {
#if HAL_PLATFORM_NCP_AT || HAL_PLATFORM_CELLULAR

test(NETWORK_02_network_connection_recovers_after_ncp_failure) {
const system_tick_t WAIT_TIMEOUT = 10 * 60 * 1000;
// 15 min gives the device time to go through a 10 min timeout & power cycle
const system_tick_t WAIT_TIMEOUT = 15 * 60 * 1000;
const system_tick_t NCP_FAILURE_TIMEOUT = 15000;

Network.on();
Expand Down Expand Up @@ -230,7 +232,8 @@ test(NETWORK_02_network_connection_recovers_after_ncp_failure) {
static bool s_networkStatusChanged = false;

test(NETWORK_03_network_connection_recovers_after_ncp_uart_sleep) {
const system_tick_t WAIT_TIMEOUT = 10 * 60 * 1000;
// 15 min gives the device time to go through a 10 min timeout & power cycle
const system_tick_t WAIT_TIMEOUT = 15 * 60 * 1000;

SCOPE_GUARD({
Particle.disconnect();
Expand Down
@@ -1,4 +1,4 @@
suite('No fixture long running');

platform('gen2', 'gen3');
timeout(20 * 60 * 1000);
timeout(32 * 60 * 1000);

0 comments on commit 669703f

Please sign in to comment.