mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 21:33:43 +08:00
DEV: Reduce theme-qunit smoke test timeout (#23394)
The theme tests we use for the smoke-test typically take 3-4 seconds to complete. This commit reduces the timeout from 10 minutes to 20 seconds, so that failures are detected more quickl
This commit is contained in:
parent
3c63db9123
commit
082ccdbd66
|
@ -86,7 +86,7 @@ task "smoke:test" do
|
||||||
query_params = { seed: Random.new.seed, theme_url: theme_url, hidepassed: 1, report_requests: 1 }
|
query_params = { seed: Random.new.seed, theme_url: theme_url, hidepassed: 1, report_requests: 1 }
|
||||||
url += "/" if !url.end_with?("/")
|
url += "/" if !url.end_with?("/")
|
||||||
full_url = "#{url}theme-qunit?#{query_params.to_query}"
|
full_url = "#{url}theme-qunit?#{query_params.to_query}"
|
||||||
timeout = 1000 * 60 * 10
|
timeout = 1000 * 20
|
||||||
|
|
||||||
sh("node", "#{Rails.root}/test/run-qunit.js", full_url, timeout.to_s)
|
sh("node", "#{Rails.root}/test/run-qunit.js", full_url, timeout.to_s)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user