test(context): fix ineffectual assignment in TestContextPostFormWithoutRequest

This commit is contained in:
张名锐 2026-08-28 20:16:12 +08:00
parent b5c998145a
commit a010fc44ae

View File

@ -3992,6 +3992,6 @@ func TestContextPostFormWithoutRequest(t *testing.T) {
req4, _ := http.NewRequest(http.MethodPost, "/", strings.NewReader("bad multipart payload")) req4, _ := http.NewRequest(http.MethodPost, "/", strings.NewReader("bad multipart payload"))
req4.Header.Set("Content-Type", "multipart/form-data; boundary=boundary") req4.Header.Set("Content-Type", "multipart/form-data; boundary=boundary")
c4.Request = req4 c4.Request = req4
val, ok = c4.GetPostForm("key") _, ok = c4.GetPostForm("key")
assert.False(t, ok) assert.False(t, ok)
} }