mirror of
https://github.com/gin-gonic/gin.git
synced 2026-09-04 14:49:27 +08:00
test(context): fix ineffectual assignment in TestContextPostFormWithoutRequest
This commit is contained in:
parent
b5c998145a
commit
a010fc44ae
@ -3992,6 +3992,6 @@ func TestContextPostFormWithoutRequest(t *testing.T) {
|
||||
req4, _ := http.NewRequest(http.MethodPost, "/", strings.NewReader("bad multipart payload"))
|
||||
req4.Header.Set("Content-Type", "multipart/form-data; boundary=boundary")
|
||||
c4.Request = req4
|
||||
val, ok = c4.GetPostForm("key")
|
||||
_, ok = c4.GetPostForm("key")
|
||||
assert.False(t, ok)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user