Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 82214f7

Browse files
committed
Fix test
1 parent 6b07a79 commit 82214f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Checks: '*,
1+
Checks: '-*,
22
-altera-*,
33
-android-*,
44
-google-objc-*,

tests/search/proxy_filter_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,21 @@ class doclist_test_filter : public filter {
125125

126126
filter::prepared::ptr prepare(const PrepareContext& ctx) const final {
127127
++prepares_;
128-
return memory::make_tracked<doclist_test_query>(ctx.memory, documents_,
128+
return memory::make_tracked<doclist_test_query>(ctx.memory, *documents_,
129129
ctx.boost);
130130
}
131131

132132
// intentional copy here to simplify multiple runs of same expected
133133
void set_expected(const std::vector<doc_id_t>& documents) {
134-
documents_ = documents;
134+
documents_ = &documents;
135135
}
136136

137137
irs::type_info::type_id type() const noexcept final {
138138
return irs::type<doclist_test_filter>::id();
139139
}
140140

141141
private:
142-
std::vector<doc_id_t> documents_;
142+
const std::vector<doc_id_t>* documents_;
143143
static size_t prepares_;
144144
};
145145

0 commit comments

Comments
 (0)