diff options
Diffstat (limited to 'tests/dynamic_extension_tests.inc')
| -rw-r--r-- | tests/dynamic_extension_tests.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/dynamic_extension_tests.inc b/tests/dynamic_extension_tests.inc index bee28f7..2f82e92 100644 --- a/tests/dynamic_extension_tests.inc +++ b/tests/dynamic_extension_tests.inc @@ -213,10 +213,11 @@ START_TEST(t_range_sample_weighted) for (size_t i=0; i<1000; i++) { auto result = ext_wirs->query(&p); - total_samples += result.size(); + auto r = result.get(); + total_samples += r.size(); - for (size_t j=0; j<result.size(); j++) { - cnt[result[j].key - 1]++; + for (size_t j=0; j<r.size(); j++) { + cnt[r[j].key - 1]++; } } |