From f2803c2398b30e8299a9392424ce46d7d8487f06 Mon Sep 17 00:00:00 2001 From: Jeronimo Irazabal Date: Fri, 29 Sep 2023 12:35:55 +0200 Subject: [PATCH] test(embedded/document): adjust unit test to reproduce issue when removing and adding field Signed-off-by: Jeronimo Irazabal --- embedded/document/engine_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/embedded/document/engine_test.go b/embedded/document/engine_test.go index b6d2d53802..ff191fc32e 100644 --- a/embedded/document/engine_test.go +++ b/embedded/document/engine_test.go @@ -1606,6 +1606,7 @@ func TestCollectionUpdateWithDeletedIndex(t *testing.T) { t.Run("create index with a new field name should succeed", func(t *testing.T) { _, _, err := engine.InsertDocument( context.Background(), + "admin", collectionName, &structpb.Struct{ Fields: map[string]*structpb.Value{ @@ -1618,6 +1619,7 @@ func TestCollectionUpdateWithDeletedIndex(t *testing.T) { err = engine.RemoveField( context.Background(), + "admin", collectionName, "title", ) @@ -1656,6 +1658,7 @@ func TestCollectionUpdateWithDeletedIndex(t *testing.T) { _, _, err = engine.InsertDocument( context.Background(), + "admin", collectionName, &structpb.Struct{ Fields: map[string]*structpb.Value{