diff --git a/copier_test.go b/copier_test.go index 34a1999..af7d56f 100644 --- a/copier_test.go +++ b/copier_test.go @@ -339,7 +339,7 @@ func TestCopyFromSliceToSlice3(t *testing.T) { } for idx := range mockedResult { - if mockedResult[idx].Name != mockedResult[idx].Name || mockedResult[idx].CollectionName != mockedResult[idx].CollectionName { + if mockedResult[idx].Name != expectedResult[idx].Name || mockedResult[idx].CollectionName != expectedResult[idx].CollectionName { t.Fatalf("failed to copy results") } }