diff --git a/tests/urchin/cql_query_test.cc b/tests/urchin/cql_query_test.cc index 9d9ad5326e..c046f9b14f 100644 --- a/tests/urchin/cql_query_test.cc +++ b/tests/urchin/cql_query_test.cc @@ -710,25 +710,3 @@ SEASTAR_TEST_CASE(test_writetime_and_ttl) { }); }); } - -static const api::timestamp_type the_timestamp = 123456789; -SEASTAR_TEST_CASE(test_writetime_and_ttl) { - return do_with_cql_env([] (auto&& e) { - return e.create_table([](auto ks_name) { - // CQL: create table cf (p1 varchar primary key, u uuid, tu timeuuid); - return schema(ks_name, "cf", - {{"p1", utf8_type}}, {}, {{"i", int32_type}}, {}, utf8_type); - }).then([&e] { - auto q = sprint("insert into cf (p1, i) values ('key1', 1) using timestamp %d;", the_timestamp); - return e.execute_cql(q).discard_result(); - }).then([&e] { - return e.execute_cql("select writetime(i) from cf where p1 in ('key1');"); - }).then([&e] (shared_ptr msg) { - assert_that(msg).is_rows() - .with_size(1) - .with_row({ - {long_type->decompose(int64_t(the_timestamp))}, - }); - }); - }); -}