From 9464fffc8ce3939bc274ea61ea41aef30bb9cd72 Mon Sep 17 00:00:00 2001 From: Duarte Nunes Date: Tue, 20 Nov 2018 15:38:31 +0000 Subject: [PATCH] tests/cql_query_test: Assert default compression options Signed-off-by: Duarte Nunes --- tests/cql_query_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/cql_query_test.cc b/tests/cql_query_test.cc index edb47a3d33..3bc2003c70 100644 --- a/tests/cql_query_test.cc +++ b/tests/cql_query_test.cc @@ -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 msg) { + e.require_table_exists("ks", "tb6"); + BOOST_REQUIRE(e.local_db().find_schema("ks", "tb6")->get_compressor_params().get_compressor() == compressor::lz4); }); }); }