diff options
author | KN4CK3R <KN4CK3R@users.noreply.github.com> | 2021-03-21 20:51:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 19:51:54 +0000 |
commit | 32833a9cfb56026b2883dd309eddc6d4b3efd7a2 (patch) | |
tree | fe74877086595228144ef70eb04061c13f705cbe /integrations/git_test.go | |
parent | 4fd6e821985c8b88e07f29deee1feda5537e9cb8 (diff) | |
download | gitea-32833a9cfb56026b2883dd309eddc6d4b3efd7a2.tar.gz gitea-32833a9cfb56026b2883dd309eddc6d4b3efd7a2.zip |
Fixed previous fix. (#15098)
Diffstat (limited to 'integrations/git_test.go')
-rw-r--r-- | integrations/git_test.go | 4 |
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]) } } |