mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: change optional to result of io (#16075)
This commit is contained in:
@@ -178,7 +178,7 @@ fn test_parse_large_body() {
|
||||
body := 'A'.repeat(101) // greater than max_bytes
|
||||
req := 'GET / HTTP/1.1\r\nContent-Length: $body.len\r\n\r\n$body'
|
||||
mut reader_ := reader(req)
|
||||
result := parse_request(mut reader_)?
|
||||
result := parse_request(mut reader_)!
|
||||
assert result.data.len == body.len
|
||||
assert result.data == body
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user