tests: reduce chances of unrelated false positives due to network errors, for running code in vlib/v/tests/skip_unused/

This commit is contained in:
Delyan Angelov 2024-01-11 11:53:35 +02:00
parent 426bcd6972
commit 9109b23c76
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
6 changed files with 2 additions and 7 deletions

View File

@ -1,3 +1 @@
[Vweb] Running app on http://localhost:38090/
[Vweb] We have 1 workers
done

View File

@ -1,3 +1 @@
[Vweb] Running app on http://localhost:38090/
[Vweb] We have 1 workers
done

View File

@ -11,8 +11,8 @@ fn main() {
println('done')
exit(0)
}()
time.sleep(10 * time.second)
vweb.run_at(&App{}, port: 38090, nr_workers: 1)!
// vweb.run(&App{}, 38091)
}
@['/']

View File

@ -1,2 +1 @@
[Vweb] Running app on http://localhost:38090/
done

View File

@ -1,2 +1 @@
[Vweb] Running app on http://localhost:38090/
done

View File

@ -13,6 +13,7 @@ fn main() {
println('done')
exit(0)
}()
time.sleep(10 * time.second)
mut app := &App{}
vweb.run_at[App, Context](mut app, port: 38090)!
}