From 20e688e703e33e662c8dbbcf2ab91ff0950f2176 Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Fri, 16 Aug 2019 17:05:25 -0400 Subject: [PATCH] cql_query_test: Move a testcase elsewhere in file Somehow this test case sits in the middle of LIKE-operator tests: test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash Move it so LIKE test cases are contiguous. Signed-off-by: Dejan Mircevski --- tests/cql_query_test.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/cql_query_test.cc b/tests/cql_query_test.cc index 649122d070..d9f2a2c44b 100644 --- a/tests/cql_query_test.cc +++ b/tests/cql_query_test.cc @@ -3963,14 +3963,6 @@ SEASTAR_TEST_CASE(test_like_operator_varchar) { }); } -SEASTAR_TEST_CASE(test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash) { - return do_with_cql_env_thread([] (cql_test_env& e) { - cquery_nofail(e, "CREATE TYPE my_udf (first text);"); - cquery_nofail(e, "create table z (pk int, ck frozen, primary key(pk, ck)) with compact storage;"); - cquery_nofail(e, "alter type my_udf add test_int int;"); - }); -} - SEASTAR_TEST_CASE(test_like_operator_on_nonstring) { return do_with_cql_env_thread([] (cql_test_env& e) { cquery_nofail(e, "create table t (k int primary key, s text)"); @@ -3998,3 +3990,11 @@ SEASTAR_TEST_CASE(test_like_operator_on_token) { exception_predicate::message_contains("token function")); }); } + +SEASTAR_TEST_CASE(test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash) { + return do_with_cql_env_thread([] (cql_test_env& e) { + cquery_nofail(e, "CREATE TYPE my_udf (first text);"); + cquery_nofail(e, "create table z (pk int, ck frozen, primary key(pk, ck)) with compact storage;"); + cquery_nofail(e, "alter type my_udf add test_int int;"); + }); +}