diff options
author | Niels Widger <niels@qacafe.com> | 2023-08-22 09:47:17 -0400 |
---|---|---|
committer | Niels Widger <niels@qacafe.com> | 2023-08-22 09:47:17 -0400 |
commit | 77f0516b0733faec7b2edf8c773f40c2460a0eb5 (patch) | |
tree | f44949c099c27eea62a1f03501e13b4baea9c325 /test/suite_sharkd.py | |
parent | 199c110d66756ea9151b2d260902169e2fedd34f (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.py | 4 |
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>", |