Skip to content

Commit

Permalink
remap alias fields when refreshing test documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nasdf committed Sep 19, 2023
1 parent c557483 commit 27f797f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integration/utils2.go
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,11 @@ func refreshDocuments(
// Just use the collection from the first relevant node, as all will be the same for this
// purpose.
collection := getNodeCollections(action.NodeID, s.collections)[0][action.CollectionID]
if err := doc.RemapAliasFieldsAndDockey(collection.Schema().Fields); err != nil {
// If an err has been returned, ignore it - it may be expected and if not
// the test will fail later anyway
continue
}

// The document may have been mutated by other actions, so to be sure we have the latest
// version without having to worry about the individual update mechanics we fetch it.
Expand Down

0 comments on commit 27f797f

Please sign in to comment.