Skip to content

Commit

Permalink
Fix schedulers unit tests. (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
keshonok committed Feb 13, 2017
1 parent bf89670 commit c9b04ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tempesta_fw/t/unit/sched_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ test_create_srv(const char *in_addr, TfwSrvGroup *sg)
srv = tfw_server_create(&addr);
BUG_ON(!srv);

srv->qsize_max = 100;
tfw_sg_add(sg, srv);

return srv;
Expand All @@ -123,8 +124,8 @@ test_create_conn(TfwPeer *peer)
if (!tfw_srv_conn_cache)
tfw_sock_srv_init();
srv_conn = tfw_srv_conn_alloc();

BUG_ON(!srv_conn);

tfw_connection_link_peer(&srv_conn->conn, peer);
srv_conn->conn.sk = &__test_sock;
/* A connection is skipped by schedulers if (refcnt <= 0). */
Expand Down

0 comments on commit c9b04ba

Please sign in to comment.