Skip to content

Commit

Permalink
Fix the way diff is shown (#1249)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <[email protected]>
  • Loading branch information
azeemshaikh38 and azeemsgoogle authored Nov 12, 2021
1 parent 46611ea commit 9dfac39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utests/utlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ func ValidateTestReturn(t *testing.T, name string, expected *TestReturn,
if err != nil {
panic(err)
}
if !cmp.Equal(*actualTestReturn, *expected, cmp.Comparer(errCmp)) {
log.Println(cmp.Diff(*actualTestReturn, *expected))
if !cmp.Equal(*expected, *actualTestReturn, cmp.Comparer(errCmp)) {
log.Println(cmp.Diff(*expected, *actualTestReturn))
return false
}
return true
Expand Down

0 comments on commit 9dfac39

Please sign in to comment.