Skip to content

Commit

Permalink
fixup: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
expressvpn-tom-l committed Oct 18, 2023
1 parent 6f0f8dc commit 6485252
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/he/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1213,4 +1213,4 @@ he_return_code_t he_conn_pmtud_probe_timeout(he_conn_t *conn) {
return HE_ERR_NULL_POINTER;
}
return he_internal_pmtud_handle_probe_timeout(conn);
}
}
4 changes: 1 addition & 3 deletions test/he/test_pmtud.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void test_he_internal_pmtud_handle_probe_timeout_try_again(void) {
TEST_ASSERT_EQUAL(44, conn.ping_next_id);
}

void test_he_internal_pmtud_handle_probe_timeout_confirm_based_failed(void) {
void test_he_internal_pmtud_handle_probe_timeout_confirm_base_failed(void) {
conn.state = HE_STATE_ONLINE;
conn.pmtud_state = HE_PMTUD_STATE_BASE;
conn.pmtud_probe_count = 3;
Expand All @@ -228,7 +228,6 @@ void test_he_internal_pmtud_handle_probe_timeout_search_completed(void) {
conn.pmtud_is_using_big_step = false;

// Probe count reached MAX_PROBES,
// it should call he_internal_pmtud_confirm_base_failed if current state is Base.
TEST_ASSERT_EQUAL(HE_SUCCESS, he_internal_pmtud_handle_probe_timeout(&conn));

// The new state should be Search Complete
Expand All @@ -252,7 +251,6 @@ void test_he_internal_pmtud_handle_probe_timeout_blackhole_detected(void) {
EXPECT_HE_INTERNAL_SEND_MESSAGE();

// Probe count reached MAX_PROBES,
// it should call he_internal_pmtud_confirm_base_failed if current state is Base.
TEST_ASSERT_EQUAL(HE_SUCCESS, he_internal_pmtud_handle_probe_timeout(&conn));

// The new state should be Base
Expand Down

0 comments on commit 6485252

Please sign in to comment.