From a5570cb288275f1647817f31e892e2d7aa4d12aa Mon Sep 17 00:00:00 2001 From: Piotr Sarna Date: Thu, 13 Sep 2018 14:00:26 +0200 Subject: [PATCH] tests: add missing get() calls in threaded context One test case missed a few get() calls in order to wait for continuations, which only accidentally worked, because it was followed by 'eventually()' blocks. Message-Id: <69c145575ac81154c4b5f500d01c6b045a267088.1536839959.git.sarna@scylladb.com> --- tests/secondary_index_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/secondary_index_test.cc b/tests/secondary_index_test.cc index 7fe5cfdebe..75c09dcc00 100644 --- a/tests/secondary_index_test.cc +++ b/tests/secondary_index_test.cc @@ -342,7 +342,7 @@ SEASTAR_TEST_CASE(test_index_with_partition_key) { // Queries that restrict only a part of the partition key and an index require filtering, because we need to compute token // in order to create a valid index view query - BOOST_REQUIRE_THROW(e.execute_cql("SELECT * from tab WHERE a = 1 and e = 5"), exceptions::invalid_request_exception); + BOOST_REQUIRE_THROW(e.execute_cql("SELECT * from tab WHERE a = 1 and e = 5").get(), exceptions::invalid_request_exception); // Indexed queries with full primary key are allowed without filtering as well eventually([&] { @@ -362,7 +362,7 @@ SEASTAR_TEST_CASE(test_index_with_partition_key) { }); // This query needs filtering, because clustering key restrictions do not form a prefix - BOOST_REQUIRE_THROW(e.execute_cql("SELECT * from tab WHERE a = 1 and b = 2 and d = 4 and e = 5"), exceptions::invalid_request_exception); + BOOST_REQUIRE_THROW(e.execute_cql("SELECT * from tab WHERE a = 1 and b = 2 and d = 4 and e = 5").get(), exceptions::invalid_request_exception); eventually([&] { auto res = e.execute_cql("SELECT * from tab WHERE a = 1 and b = 2 and d = 4 and e = 5 ALLOW FILTERING").get0(); assert_that(res).is_rows().with_rows({