Skip to content

Commit

Permalink
fill checkqueue_tests vector for completion checking
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed May 15, 2019
1 parent 3cc7205 commit 693f206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/checkqueue_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ static void Correct_Queue_range(std::vector<size_t> range)
CCheckQueueControl<FakeCheckCheckCompletion> control(small_queue.get());
while (total) {
vChecks.resize(std::min(total, (size_t) InsecureRandRange(10)));
for (size_t i = 0; i < vChecks.size(); ++i) {
vChecks[i] = new FakeCheckCheckCompletion();
}
total -= vChecks.size();
control.Add(vChecks);
}
Expand Down

0 comments on commit 693f206

Please sign in to comment.