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.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@398628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Matthew Jordan
2013-09-08 23:25:55 +00:00
parent 68cc3b279e
commit 8e5157d869
+16 -16
View File
@@ -1803,22 +1803,6 @@ AST_TEST_DEFINE(test_cdr_dial_answer_multiparty)
.next = &charlie_expected_two,
};
struct ast_cdr alice_expected_three = {
.clid = "\"Alice\" <100>",
.src = "100",
.dst = "100",
.dcontext = "default",
.channel = CHANNEL_TECH_NAME "/Alice",
.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 = "400",
.next = &charlie_expected_one,
};
struct ast_cdr alice_expected_two = {
.clid = "\"Alice\" <100>",
.src = "100",
.dst = "100",
@@ -1832,6 +1816,22 @@ AST_TEST_DEFINE(test_cdr_dial_answer_multiparty)
.disposition = AST_CDR_ANSWERED,
.accountcode = "100",
.peeraccount = "300",
.next = &charlie_expected_one,
};
struct ast_cdr alice_expected_two = {
.clid = "\"Alice\" <100>",
.src = "100",
.dst = "100",
.dcontext = "default",
.channel = CHANNEL_TECH_NAME "/Alice",
.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 = "400",
.next = &alice_expected_three,
};
struct ast_cdr alice_expected_one = {