hertz icon indicating copy to clipboard operation
hertz copied to clipboard

test: fix slice init length in ut

Open cuishuang opened this issue 1 year ago • 1 comments

What type of PR is this?

fix

Check the PR title.

  • [ ] This PR title match the format: <type>(optional scope): <description>
  • [ ] The description of this PR title is user-oriented and clear enough for others to understand.
  • [ ] Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

修复切片初始化长度

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: zh(optional):

(Optional) Which issue(s) this PR fixes:

(Optional) The PR that updates user documentation:

The intention here should be to initialize a slice with a capacity of fRead rather than initializing the length of this slice.

cuishuang avatar Sep 26 '24 06:09 cuishuang

Please check the ci: https://github.com/cloudwego/hertz/actions/runs/11047064196/job/30688036659?pr=1205

welkeyever avatar Oct 08 '24 03:10 welkeyever