summaryrefslogtreecommitdiffstats
path: root/tests/include/shard_standard.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/shard_standard.h')
-rw-r--r--tests/include/shard_standard.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/shard_standard.h b/tests/include/shard_standard.h
index 047a7b5..ddd7614 100644
--- a/tests/include/shard_standard.h
+++ b/tests/include/shard_standard.h
@@ -65,8 +65,8 @@ START_TEST(t_shard_init)
auto shard2 = new Shard(mbuffer2->get_buffer_view());
auto shard3 = new Shard(mbuffer3->get_buffer_view());
- Shard* shards[3] = {shard1, shard2, shard3};
- auto shard4 = new Shard(shards, 3);
+ std::vector<Shard*> shards = {shard1, shard2, shard3};
+ auto shard4 = new Shard(shards);
ck_assert_int_eq(shard4->get_record_count(), n * 3);
ck_assert_int_eq(shard4->get_tombstone_count(), 0);
@@ -119,9 +119,9 @@ START_TEST(t_full_cancelation)
ck_assert_int_eq(shard_ts->get_record_count(), n);
ck_assert_int_eq(shard_ts->get_tombstone_count(), n);
- Shard* shards[] = {shard, shard_ts};
+ std::vector<Shard *> shards = {shard, shard_ts};
- Shard* merged = new Shard(shards, 2);
+ Shard* merged = new Shard(shards);
ck_assert_int_eq(merged->get_tombstone_count(), 0);
ck_assert_int_eq(merged->get_record_count(), 0);