diff mbox

[libosmo-netif,13/18] tests: osmux: validate dummy padding with no voice data interaction

Message ID 1437488613-3943-14-git-send-email-pablo@gnumonks.org
State Accepted
Headers show

Commit Message

Pablo Neira Ayuso July 21, 2015, 2:23 p.m. UTC
From: Pablo Neira Ayuso <pablo@soleta.eu>

Make sure that early dummy bandwitch preallocation works fine in the absence of
any kind of voice traffic.
---
 tests/osmux/osmux_test.c |    4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index 09ef9fd..0ad02d3 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -191,6 +191,10 @@  int main(void)
 	osmux_xfrm_input_open_circuit(&h_input, 2, 1);
 	osmux_xfrm_input_open_circuit(&h_input, 3, 1);
 
+	/* Wait 10 times to make sure dummy padding timer works fine */
+	for (i = 0; i < 10; i++)
+		osmo_select_main(0);
+
 	/* Start pushing voice data to circuits 0 and 1 */
 	osmux_test_loop(0);
 	/* ... now start pushing voice data to circuits 2 and 3. This circuits