mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 09:30:45 +00:00
Revert "tests: add WRITETIME test"
This reverts commit e311beebea.
It breaks the build.
This commit is contained in:
@@ -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<transport::messages::result_message> msg) {
|
||||
assert_that(msg).is_rows()
|
||||
.with_size(1)
|
||||
.with_row({
|
||||
{long_type->decompose(int64_t(the_timestamp))},
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user