Skip to content

Commit

Permalink
Update core_mqtt_utest.c
Browse files Browse the repository at this point in the history
  • Loading branch information
AniruddhaKanhere authored May 4, 2023
1 parent a762194 commit a03c173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit-test/core_mqtt_utest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4783,7 +4783,7 @@ void test_MQTT_Subscribe_error_paths_timerOverflowCheck( void )
size_t remainingLength = MQTT_SAMPLE_REMAINING_LENGTH;
size_t packetSize = MQTT_SAMPLE_REMAINING_LENGTH;

globalEntryTime = UINT32_MAX - MQTT_OVERFLOW_OFFSET;
globalEntryTime = UINT32_MAX;

/* The timer function can be called a maximum of these many times
* (which is way less than UINT32_MAX). This ensures that if overflow
Expand Down

0 comments on commit a03c173

Please sign in to comment.