mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
tests: make error handling the same as the main function (#15825)
This commit is contained in:
parent
391ac12fe2
commit
41dbd12bc4
69 changed files with 193 additions and 192 deletions
|
@ -18,7 +18,7 @@ fn (mut app App) index() vweb.Result {
|
|||
return app.text("Csrf-Token set! It's value is: $token")
|
||||
}
|
||||
|
||||
fn test_send_a_request_to_homepage_expecting_a_csrf_cookie() ? {
|
||||
fn test_send_a_request_to_homepage_expecting_a_csrf_cookie() {
|
||||
go vweb.run_at(&App{}, vweb.RunParams{ port: sport })
|
||||
time.sleep(500 * time.millisecond)
|
||||
res := http.get('http://localhost:$sport/')?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue