summaryrefslogtreecommitdiff
path: root/tests/test_cel.c
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-12-05 22:10:20 +0000
committerDavid M. Lee <dlee@digium.com>2013-12-05 22:10:20 +0000
commit1212906351c3f4f5f759396c32b5e1dbabd403a4 (patch)
tree285c7eea05e3b246fe9560fae93d9d79dd5f2ad0 /tests/test_cel.c
parentfc70db3a810dae81e0ba0e09ecf11468bbef4d54 (diff)
Reverting r403311. It's causing ARI tests to hang.
........ Merged revisions 403398 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403404 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_cel.c')
-rw-r--r--tests/test_cel.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test_cel.c b/tests/test_cel.c
index a90dfbf3e..0aa8b601c 100644
--- a/tests/test_cel.c
+++ b/tests/test_cel.c
@@ -1551,14 +1551,10 @@ AST_TEST_DEFINE(test_cel_local_optimize)
CREATE_ALICE_CHANNEL(chan_alice, &alice_caller);
CREATE_BOB_CHANNEL(chan_bob, &bob_caller);
- ast_channel_lock(chan_alice);
alice_snapshot = ast_channel_snapshot_create(chan_alice);
- ast_channel_unlock(chan_alice);
ast_test_validate(test, alice_snapshot != NULL);
- ast_channel_lock(chan_bob);
bob_snapshot = ast_channel_snapshot_create(chan_bob);
- ast_channel_unlock(chan_bob);
ast_test_validate(test, bob_snapshot != NULL);
ast_multi_channel_blob_add_channel(mc_blob, "1", alice_snapshot);
@@ -1679,9 +1675,7 @@ static int append_expected_event(
const char *peer)
{
RAII_VAR(struct ast_channel_snapshot *, snapshot, NULL, ao2_cleanup);
- ast_channel_lock(chan);
snapshot = ast_channel_snapshot_create(chan);
- ast_channel_unlock(chan);
if (!snapshot) {
return -1;
}