]> source.dussan.org Git - gitea.git/commitdiff
Fixed previous fix. (#15098)
authorKN4CK3R <KN4CK3R@users.noreply.github.com>
Sun, 21 Mar 2021 19:51:54 +0000 (20:51 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Mar 2021 19:51:54 +0000 (19:51 +0000)
integrations/git_test.go

index d8e7c4fe51f76b3d12cdf7d6f4d4004509b7c279..c187fc6207482f5681c308055c5ead6b4b2dadad 100644 (file)
@@ -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])
        }
 }