aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_sharkd.py
diff options
context:
space:
mode:
authorNiels Widger <niels@qacafe.com>2023-08-22 09:47:17 -0400
committerNiels Widger <niels@qacafe.com>2023-08-22 09:47:17 -0400
commit77f0516b0733faec7b2edf8c773f40c2460a0eb5 (patch)
treef44949c099c27eea62a1f03501e13b4baea9c325 /test/suite_sharkd.py
parent199c110d66756ea9151b2d260902169e2fedd34f (diff)
sharkd: Fix incorrect "stop_time" field in "voip-calls" tap
Commit a4c6a2f1 added a `voip-calls` tap to `sharkd`, but a copy-paste bug in `sharkd_session_process_tap_voip_calls_cb` caused each call's `stop_time` field to actually be the call's start time. This commit fixes this bug and updates the `test_sharkd_req_tap_voip_calls` unit test accordingly.
Diffstat (limited to 'test/suite_sharkd.py')
-rw-r--r--test/suite_sharkd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/suite_sharkd.py b/test/suite_sharkd.py
index 23dd2f48e6..0500077ea9 100644
--- a/test/suite_sharkd.py
+++ b/test/suite_sharkd.py
@@ -547,7 +547,7 @@ class TestSharkd:
"calls":[{
"call":0,
"start_time":0.000000,
- "stop_time":0.000000,
+ "stop_time":8.524137,
"initial_speaker":"200.57.7.195",
"from":"<sip:200.57.7.195:55061;user=phone>",
"to":"\"francisco@bestel.com\" <sip:francisco@bestel.com:55060>",
@@ -558,7 +558,7 @@ class TestSharkd:
},{
"call":1,
"start_time":24.665953,
- "stop_time":24.665953,
+ "stop_time":24.692752,
"initial_speaker":"200.57.7.195",
"from":"\"Ivan Alizade\" <sip:5514540002@200.57.7.195:55061;user=phone>",
"to":"\"francisco@bestel.com\" <sip:francisco@bestel.com:55060>",