tests/cql_query_test: Assert default compression options
Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
@@ -1443,6 +1443,10 @@ SEASTAR_TEST_CASE(test_table_compression) {
|
||||
assert(!f.failed());
|
||||
e.require_table_exists("ks", "tb4");
|
||||
BOOST_REQUIRE(e.local_db().find_schema("ks", "tb4")->get_compressor_params().get_compressor() == compressor::deflate);
|
||||
return e.execute_cql("create table tb6 (foo text PRIMARY KEY, bar text);");
|
||||
}).then([&e] (shared_ptr<cql_transport::messages::result_message> msg) {
|
||||
e.require_table_exists("ks", "tb6");
|
||||
BOOST_REQUIRE(e.local_db().find_schema("ks", "tb6")->get_compressor_params().get_compressor() == compressor::lz4);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user