Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

fix failed ut #536

Merged
merged 1 commit into from
Jul 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/meta/test/MetaClientTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ TEST(MetaClientTest, TagTest) {
}
// Test wrong format timestamp in default value
{
cpp2::Schema schema = genSchema("2010-10-10 10:00:00", PropertyType::TIMESTAMP, true);
cpp2::Schema schema = genSchema("2010-10-10X10:00:00", PropertyType::TIMESTAMP, true);
auto result = client->createTagSchema(
spaceId, "test_tag_wrong_default_timestamp2", std::move(schema)).get();
ASSERT_FALSE(result.ok());
Expand All @@ -653,6 +653,12 @@ TEST(MetaClientTest, TagTest) {
spaceId, "test_tag_right_default_timestamp2", std::move(schema)).get();
ASSERT_TRUE(result.ok());
}
{
cpp2::Schema schema = genSchema("2010-10-10 10:00:00", PropertyType::TIMESTAMP, true);
auto result = client->createTagSchema(
spaceId, "test_tag_wrong_default_timestamp2", std::move(schema)).get();
ASSERT_TRUE(result.ok());
}
// Test out of range of int8
{
cpp2::Schema schema = genSchema(-129, PropertyType::INT8);
Expand Down