mirror of
https://github.com/typesense/typesense.git
synced 2025-05-20 21:52:23 +08:00
Tweak test.
This commit is contained in:
parent
8766d87e0b
commit
83171082b4
@ -1607,6 +1607,21 @@ TEST_F(CollectionSchemaChangeTest, NestedFieldDrop) {
|
||||
auto actual_schema = coll->get_schema();
|
||||
ASSERT_EQ(1, actual_schema.size());
|
||||
ASSERT_EQ(1, actual_schema.count("shops"));
|
||||
|
||||
// add the field back
|
||||
|
||||
schema_change = R"({
|
||||
"fields": [
|
||||
{"name": "shops.is_available", "type": "bool[]", "index": true, "optional": true}
|
||||
]
|
||||
})"_json;
|
||||
|
||||
schema_change_op = coll->alter(schema_change);
|
||||
ASSERT_TRUE(schema_change_op.ok());
|
||||
actual_schema = coll->get_schema();
|
||||
ASSERT_EQ(2, actual_schema.size());
|
||||
ASSERT_EQ(1, actual_schema.count("shops"));
|
||||
ASSERT_EQ(1, actual_schema.count("shops.is_available"));
|
||||
}
|
||||
|
||||
TEST_F(CollectionSchemaChangeTest, NestedFieldReIndex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user