Stasis: Update unittest for channel snapshots
authorKinsey Moore <kmoore@digium.com>
Thu, 11 Dec 2014 13:53:39 +0000 (13:53 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 11 Dec 2014 13:53:39 +0000 (13:53 +0000)
This adjusts the unit test for channel snapshots to take the new
language key into account.
........

Merged revisions 429352 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429353 65c4cc65-6c06-0410-ace0-fbb531ad65f3

tests/test_stasis_channels.c

index 4c4bc66..2a36c4f 100644 (file)
@@ -278,6 +278,7 @@ AST_TEST_DEFINE(channel_snapshot_json)
                                 "  s: { s: s, s: s, s: i },"
                                 "  s: { s: s, s: s },"
                                 "  s: { s: s, s: s },"
+                                "  s: s"
                                 "  s: o"
                                 "}",
                                 "name", "TEST/name",
@@ -294,6 +295,7 @@ AST_TEST_DEFINE(channel_snapshot_json)
                                 "connected",
                                 "name", "",
                                 "number", "",
+                                "language", "en",
                                 "creationtime",
                                 ast_json_timeval(
                                         ast_channel_creationtime(chan), NULL));