From f8f1ff4aee74d889b075feaa70add795b7928da7 Mon Sep 17 00:00:00 2001 From: Azeem Shaikh Date: Fri, 12 Nov 2021 05:53:50 -0800 Subject: [PATCH] Fix the way diff is shown --- utests/utlib.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utests/utlib.go b/utests/utlib.go index 7771a033fc32..24d96d433143 100644 --- a/utests/utlib.go +++ b/utests/utlib.go @@ -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