summaryrefslogtreecommitdiffstats
path: root/integrations/git_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/git_test.go')
-rw-r--r--integrations/git_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/integrations/git_test.go b/integrations/git_test.go
index d8e7c4fe51..c187fc6207 100644
--- a/integrations/git_test.go
+++ b/integrations/git_test.go
@@ -527,7 +527,9 @@ func doEnsureDiffNoChange(ctx APITestContext, pr api.PullRequest, diffStr string
if actualMaxLen > 800 {
actualMaxLen = 800
}
- assert.Equal(t, diffStr, actual, "Unexpected change in the diff string: expected: %s but was actually: %s", diffStr[:expectedMaxLen], actual[:actualMaxLen])
+
+ equal := diffStr == actual
+ assert.True(t, equal, "Unexpected change in the diff string: expected: %s but was actually: %s", diffStr[:expectedMaxLen], actual[:actualMaxLen])
}
}