1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: check nested struct field with required attr (fix #10913) (#17277)

This commit is contained in:
yuyi
2023-02-11 17:22:31 +08:00
committed by GitHub
parent 03be525c82
commit 90591eb813
10 changed files with 63 additions and 12 deletions

View File

@ -21,7 +21,7 @@ fn (mut app App) index() vweb.Result {
fn test_send_a_request_to_homepage_expecting_a_csrf_cookie() {
spawn vweb.run_at(&App{}, vweb.RunParams{ port: sport })
time.sleep(500 * time.millisecond)
res := http.get('http://localhost:${sport}/')?
res := http.get('http://localhost:${sport}/')!
if res.header.str().contains('__Host-Csrf-Token') {
assert true
} else {