Skip to content

Commit

Permalink
Merge pull request #1018 from tempesta-tech/ik-fix-unit-tests
Browse files Browse the repository at this point in the history
Fix missed function in unit tests.
  • Loading branch information
vankoven authored May 18, 2018
2 parents b2cab5b + 741b0ff commit c0cd165
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tempesta_fw/t/unit/test_http_sticky.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,19 +186,26 @@ tfw_connection_send(TfwConn *conn, TfwMsg *msg)
return 0;
}

/* custom version for testing purposes */
/* Custom version for testing purposes. */
int tfw_cli_conn_send(TfwCliConn *cli_conn, TfwMsg *msg)
{
return tfw_connection_send((TfwConn *)cli_conn, msg);
}

/* custom version for testing purposes */
/* Custom version for testing purposes. */
void
tfw_http_resp_build_error(TfwHttpReq *req)
{
(void)req;
}

/* Custom version for testing purposes. */
void
tfw_tls_cfg_require(void)
{
return;
}

/* setup/teardown helpers */

static void
Expand Down

0 comments on commit c0cd165

Please sign in to comment.