Skip to content

Commit 13d5192

Browse files
committed
Replaced insert_or_update with insert.
It always inserts.
1 parent 6671db3 commit 13d5192

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/subscription_map.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ BOOST_AUTO_TEST_CASE( multi_non_wc_crud ) {
194194

195195
BOOST_TEST(elem.h.empty());
196196
// new insert or update (insert case)
197-
auto h = m.insert_or_update(elem.topic_filter, elem);
197+
auto h = m.insert(elem.topic_filter, elem);
198198
auto& idx = scos.get<tag_con_topic_filter>();
199199
idx.modify(
200200
it,
@@ -212,7 +212,7 @@ BOOST_AUTO_TEST_CASE( multi_non_wc_crud ) {
212212

213213
if (elem.h.empty()) {
214214
// new insert
215-
auto h = m.insert_or_update(elem.topic_filter, elem);
215+
auto h = m.insert(elem.topic_filter, elem);
216216
auto& idx = scos.get<tag_con_topic_filter>();
217217
idx.modify(
218218
it,
@@ -354,7 +354,7 @@ BOOST_AUTO_TEST_CASE( multi_wc_crud ) {
354354

355355
BOOST_TEST(elem.h.empty());
356356
// new insert or update (insert case)
357-
auto h = m.insert_or_update(elem.topic_filter, elem);
357+
auto h = m.insert(elem.topic_filter, elem);
358358
auto& idx = scos.get<tag_con_topic_filter>();
359359
idx.modify(
360360
it,
@@ -372,7 +372,7 @@ BOOST_AUTO_TEST_CASE( multi_wc_crud ) {
372372

373373
if (elem.h.empty()) {
374374
// new insert
375-
auto h = m.insert_or_update(elem.topic_filter, elem);
375+
auto h = m.insert(elem.topic_filter, elem);
376376
auto& idx = scos.get<tag_con_topic_filter>();
377377
idx.modify(
378378
it,

0 commit comments

Comments
 (0)