[asterisk-commits] dlee: branch dlee/stasis-app r384321 - in /team/dlee/stasis-app: apps/ tests/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 29 00:15:39 CDT 2013
Author: dlee
Date: Fri Mar 29 00:15:36 2013
New Revision: 384321
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384321
Log:
Fixed unit test and reference bug
Modified:
team/dlee/stasis-app/apps/app_stasis.c
team/dlee/stasis-app/tests/test_app_stasis.c
Modified: team/dlee/stasis-app/apps/app_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-app/apps/app_stasis.c?view=diff&rev=384321&r1=384320&r2=384321
==============================================================================
--- team/dlee/stasis-app/apps/app_stasis.c (original)
+++ team/dlee/stasis-app/apps/app_stasis.c Fri Mar 29 00:15:36 2013
@@ -252,7 +252,7 @@
}
}
- message = ast_json_pack("{s: o}", event_name, event);
+ message = ast_json_pack("{s: o}", event_name, ast_json_ref(event));
return ast_json_ref(message);
}
Modified: team/dlee/stasis-app/tests/test_app_stasis.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-app/tests/test_app_stasis.c?view=diff&rev=384321&r1=384320&r2=384321
==============================================================================
--- team/dlee/stasis-app/tests/test_app_stasis.c (original)
+++ team/dlee/stasis-app/tests/test_app_stasis.c Fri Mar 29 00:15:36 2013
@@ -153,7 +153,7 @@
stasis_app_register(app_name, test_handler, app_data1);
stasis_app_register(app_name, test_handler, app_data2);
- expected_message1 = ast_json_pack("[{s: s}]", "event", "application-replaced");
+ expected_message1 = ast_json_pack("[{s: {}}]", "application-replaced");
message = ast_json_pack("{ s: o }", "test-message", ast_json_null());
expected_message2 = ast_json_pack("[o]", ast_json_ref(message));
More information about the asterisk-commits
mailing list