summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-06-15 10:39:34 +0900
committerGitHub <noreply@github.com>2023-06-15 01:39:34 +0000
commitd686aa0d31e039bc409d5bee385c27c7fbb2c47f (patch)
tree33d062a93fe19b8f328c051e2994b38116337d59 /tests
parent037366f93f94a3185b56d21e90335305c8d4b685 (diff)
downloadgitea-d686aa0d31e039bc409d5bee385c27c7fbb2c47f.tar.gz
gitea-d686aa0d31e039bc409d5bee385c27c7fbb2c47f.zip
Fix profile render when the README.md size is larger than 1024 bytes (#25270)
Backport #25131
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_packages_cargo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_packages_cargo_test.go b/tests/integration/api_packages_cargo_test.go
index 608f192968..03d8e0c520 100644
--- a/tests/integration/api_packages_cargo_test.go
+++ b/tests/integration/api_packages_cargo_test.go
@@ -88,7 +88,7 @@ func testPackageCargo(t *testing.T, _ *neturl.URL) {
blob, err := commit.GetBlobByPath(path)
assert.NoError(t, err)
- content, err := blob.GetBlobContent()
+ content, err := blob.GetBlobContent(1024)
assert.NoError(t, err)
return content