Skip to content

Commit 693f206

Browse files
committed
fill checkqueue_tests vector for completion checking
1 parent 3cc7205 commit 693f206

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/checkqueue_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ static void Correct_Queue_range(std::vector<size_t> range)
161161
CCheckQueueControl<FakeCheckCheckCompletion> control(small_queue.get());
162162
while (total) {
163163
vChecks.resize(std::min(total, (size_t) InsecureRandRange(10)));
164+
for (size_t i = 0; i < vChecks.size(); ++i) {
165+
vChecks[i] = new FakeCheckCheckCompletion();
166+
}
164167
total -= vChecks.size();
165168
control.Add(vChecks);
166169
}

0 commit comments

Comments
 (0)