X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Funittest%2Ftcp_test.c;h=7aa24562d7e0e08764353f41be1d41eee500c904;hb=92f190a802b6999ce68696032e556aa75171e1cc;hp=940ffcf94c451410cb5d22736e4eb9a7f5240457;hpb=a2ac36c91749d5377b263c3d99d484ac33854eef;p=vpp.git diff --git a/src/plugins/unittest/tcp_test.c b/src/plugins/unittest/tcp_test.c index 940ffcf94c4..7aa24562d7e 100644 --- a/src/plugins/unittest/tcp_test.c +++ b/src/plugins/unittest/tcp_test.c @@ -1093,6 +1093,19 @@ tcp_test_delivery (vlib_main_t * vm, unformat_input_t * input) TCP_TEST (rs->flags & TCP_BTS_IS_APP_LIMITED, "is app limited"); TCP_TEST (tc->app_limited == 0, "app limited should be cleared"); + /* + * 9) test flush + */ + + tcp_bt_track_tx (tc); + tc->snd_nxt += burst; + + session_main.wrk[thread_index].last_vlib_time = 12; + tcp_bt_track_tx (tc); + tc->snd_nxt += burst; + + tcp_bt_flush_samples (tc); + /* * Cleanup */