Skip to content

Commit

Permalink
test(embedded/document): adjust unit test to reproduce issue when rem…
Browse files Browse the repository at this point in the history
…oving and adding field

Signed-off-by: Jeronimo Irazabal <jeronimo.irazabal@gmail.com>
  • Loading branch information
jeroiraz committed Sep 29, 2023
1 parent f7a4a4f commit f2803c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions embedded/document/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -1618,6 +1619,7 @@ func TestCollectionUpdateWithDeletedIndex(t *testing.T) {

err = engine.RemoveField(
context.Background(),
"admin",
collectionName,
"title",
)
Expand Down Expand Up @@ -1656,6 +1658,7 @@ func TestCollectionUpdateWithDeletedIndex(t *testing.T) {

_, _, err = engine.InsertDocument(
context.Background(),
"admin",
collectionName,
&structpb.Struct{
Fields: map[string]*structpb.Value{
Expand Down

0 comments on commit f2803c2

Please sign in to comment.