pub_id = RealmSession.get_id()
subs = RealmSession.subscriptions(db, realm, topic)
+ details = Map.put_new(opts, "topic", topic)
Enum.each(subs, fn {id, {pid, node}} ->
send(
publication_id: pub_id,
arg_list: arg_l,
arg_kw: arg_kw,
- details: opts
+ details: details
}, pid}
)
end)
}
)
- assert_receive %Event{}, 2000
- assert_receive %Event{}, 2000
- assert_receive %Event{}, 2000
+ assert_receive %Event{details: %{"topic" => "com.data.test.temp"}}, 2000
+ assert_receive %Event{details: %{"topic" => "com.data.test.temp"}}, 2000
+ assert_receive %Event{details: %{"topic" => "com.data.test.temp"}}, 2000
end
end