stasis: Use an implementation specific channel snapshot cache.
[asterisk/asterisk.git] / tests / test_cel.c
index 0b17d48..c1e7340 100644 (file)
@@ -276,8 +276,7 @@ static void do_sleep(void)
        ast_hangup((channel)); \
        HANGUP_EVENT(channel, cause, dialstatus); \
        APPEND_EVENT(channel, AST_CEL_CHANNEL_END, NULL, NULL); \
-       ao2_cleanup(stasis_cache_get(ast_channel_cache(), \
-               ast_channel_snapshot_type(), ast_channel_uniqueid(channel))); \
+       ao2_cleanup(ast_channel_snapshot_get_latest(ast_channel_uniqueid(channel))); \
        ao2_cleanup(channel); \
        channel = NULL; \
        } while (0)