Skip to content

Commit

Permalink
tests: reduce chances of unrelated false positives due to network err…
Browse files Browse the repository at this point in the history
…ors, for running code in vlib/v/tests/skip_unused/
  • Loading branch information
spytheman committed Jan 11, 2024
1 parent 426bcd6 commit 9109b23
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions vlib/v/tests/skip_unused/vweb_run_at.run.out
@@ -1,3 +1 @@
[Vweb] Running app on http://localhost:38090/
[Vweb] We have 1 workers
done
2 changes: 0 additions & 2 deletions vlib/v/tests/skip_unused/vweb_run_at.skip_unused.run.out
@@ -1,3 +1 @@
[Vweb] Running app on http://localhost:38090/
[Vweb] We have 1 workers
done
2 changes: 1 addition & 1 deletion vlib/v/tests/skip_unused/vweb_run_at.vv
Expand Up @@ -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)
}

@['/']
Expand Down
1 change: 0 additions & 1 deletion vlib/v/tests/skip_unused/x_vweb_run_at.run.out
@@ -1,2 +1 @@
[Vweb] Running app on http://localhost:38090/
done
1 change: 0 additions & 1 deletion vlib/v/tests/skip_unused/x_vweb_run_at.skip_unused.run.out
@@ -1,2 +1 @@
[Vweb] Running app on http://localhost:38090/
done
1 change: 1 addition & 0 deletions vlib/v/tests/skip_unused/x_vweb_run_at.vv
Expand Up @@ -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)!
}
Expand Down

0 comments on commit 9109b23

Please sign in to comment.