aboutsummaryrefslogtreecommitdiff
path: root/example/ipsec_crypto
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2022-01-27 12:15:33 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-02-03 13:12:27 +0200
commitd8cc626b8f3631ee93dba42cad2446de696305dd (patch)
treeb7b447ddedb24afa0a80d3100b8ca7d039a99c21 /example/ipsec_crypto
parent862564a722fa8da912470839d35110f65b2afe01 (diff)
example: ipsec: Sleep for shorter periods to finish stream test faster
Sleep for shorter periods in ipsec_api and ipsec_crypto examples when waiting for stream test completion. This reduces unnecessary wait and speeds up make check. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'example/ipsec_crypto')
-rw-r--r--example/ipsec_crypto/odp_ipsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ipsec_crypto/odp_ipsec.c b/example/ipsec_crypto/odp_ipsec.c
index c6a64399f..2520d9fa1 100644
--- a/example/ipsec_crypto/odp_ipsec.c
+++ b/example/ipsec_crypto/odp_ipsec.c
@@ -1391,7 +1391,7 @@ main(int argc, char *argv[])
do {
done = verify_stream_db_outputs();
- sleep(1);
+ usleep(100000);
} while (!done);
printf("All received\n");
odp_atomic_store_u32(&global->exit_threads, 1);