From fe4715c5bd4ac28950c97dded9848710d8becb88 Mon Sep 17 00:00:00 2001 From: chenrui Date: Tue, 8 Mar 2022 17:27:24 +0800 Subject: [PATCH] chore: add test comment --- tests/associations_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/associations_test.go b/tests/associations_test.go index 696c84bb..32f6525b 100644 --- a/tests/associations_test.go +++ b/tests/associations_test.go @@ -236,6 +236,7 @@ func TestSaveBelongsCircularReference(t *testing.T) { DB.First(&parent1, parent.ID) AssertObjEqual(t, parent, parent1, "ID", "FavChildID") + // Save and Updates is the same DB.Updates(&parent) DB.First(&parent1, parent.ID) AssertObjEqual(t, parent, parent1, "ID", "FavChildID")