mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
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>
This commit is contained in:
committed by
Duarte Nunes
parent
8a2abd45fb
commit
a5570cb288
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user