forked from mirror/gorm
chore: add test comment
This commit is contained in:
parent
326862f3f8
commit
fe4715c5bd
|
@ -236,6 +236,7 @@ func TestSaveBelongsCircularReference(t *testing.T) {
|
||||||
DB.First(&parent1, parent.ID)
|
DB.First(&parent1, parent.ID)
|
||||||
AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
|
AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
|
||||||
|
|
||||||
|
// Save and Updates is the same
|
||||||
DB.Updates(&parent)
|
DB.Updates(&parent)
|
||||||
DB.First(&parent1, parent.ID)
|
DB.First(&parent1, parent.ID)
|
||||||
AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
|
AssertObjEqual(t, parent, parent1, "ID", "FavChildID")
|
||||||
|
|
Loading…
Reference in New Issue