summaryrefslogtreecommitdiff
path: root/tests/test_cdr.c
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2013-09-08 23:30:39 +0000
committerMatthew Jordan <mjordan@digium.com>2013-09-08 23:30:39 +0000
commit361d308b211bb768b913d14fcb6c1d48ad27c45e (patch)
treee4021f191d3ce7db5e3e86cdf655beb6eb6efd36 /tests/test_cdr.c
parentad89dffb8a2997ad6bbd38ea73762ca0465e70ac (diff)
Update CDR Unit tests to reflect container changes in r398579
When a channel joins a multi-party bridge, the ordering of the CDRs that is created is determined by the ordering of the channels who happen to be in that bridge. When r398579 changed the number of buckets in the container to something sensible, it changed the ordering that the CDRs was created in, causing one of the multiparty tests to fail. This fixes the test with the now expected ordering. ........ Merged revisions 398628 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398629 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'tests/test_cdr.c')
-rw-r--r--tests/test_cdr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cdr.c b/tests/test_cdr.c
index 14bf63d0b..4fd1bdb90 100644
--- a/tests/test_cdr.c
+++ b/tests/test_cdr.c
@@ -1808,14 +1808,14 @@ AST_TEST_DEFINE(test_cdr_dial_answer_multiparty)
.dst = "100",
.dcontext = "default",
.channel = CHANNEL_TECH_NAME "/Alice",
- .dstchannel = CHANNEL_TECH_NAME "/David",
+ .dstchannel = CHANNEL_TECH_NAME "/Charlie",
.lastapp = "Dial",
.lastdata = CHANNEL_TECH_NAME "/Bob",
.amaflags = AST_AMA_DOCUMENTATION,
.billsec = 1,
.disposition = AST_CDR_ANSWERED,
.accountcode = "100",
- .peeraccount = "400",
+ .peeraccount = "300",
.next = &charlie_expected_one,
};
struct ast_cdr alice_expected_two = {
@@ -1824,14 +1824,14 @@ AST_TEST_DEFINE(test_cdr_dial_answer_multiparty)
.dst = "100",
.dcontext = "default",
.channel = CHANNEL_TECH_NAME "/Alice",
- .dstchannel = CHANNEL_TECH_NAME "/Charlie",
+ .dstchannel = CHANNEL_TECH_NAME "/David",
.lastapp = "Dial",
.lastdata = CHANNEL_TECH_NAME "/Bob",
.amaflags = AST_AMA_DOCUMENTATION,
.billsec = 1,
.disposition = AST_CDR_ANSWERED,
.accountcode = "100",
- .peeraccount = "300",
+ .peeraccount = "400",
.next = &alice_expected_three,
};
struct ast_cdr alice_expected_one = {