Update scan_test.go

This commit is contained in:
Hasan 2022-03-14 20:04:01 +05:45
parent 09f127b491
commit c259de2176
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ func TestScanToEmbedded(t *testing.T) {
Joins("inner join person_addresses on people.id = person_addresses.person_id"). Joins("inner join person_addresses on people.id = person_addresses.person_id").
Joins("inner join addresses on person_addresses.address_id = addresses.id"). Joins("inner join addresses on person_addresses.address_id = addresses.id").
Find(&personAddressInfoList).Error; err != nil { Find(&personAddressInfoList).Error; err != nil {
t.Errorf("Failed, got error: %v", err) t.Errorf("Failed to run join query, got error: %v", err)
} }
for _, info := range personAddressInfoList { for _, info := range personAddressInfoList {