mirror of
https://github.com/Diggsey/sqlxmq.git
synced 2024-05-31 23:48:12 +00:00
Merge branch 'ci-tests' into signal-shutdown
This commit is contained in:
commit
79288e8b8d
2
.github/workflows/toolchain.yml
vendored
2
.github/workflows/toolchain.yml
vendored
|
@ -54,7 +54,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUST_BACKTRACE: "1"
|
||||
GITHUB_ACTIONS: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
|
@ -77,7 +76,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
env:
|
||||
RUST_BACKTRACE: "1"
|
||||
GITHUB_ACTIONS: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions-rs/toolchain@v1
|
||||
|
|
|
@ -371,12 +371,12 @@ mod tests {
|
|||
registry.runner(pool).run().await.unwrap()
|
||||
}
|
||||
|
||||
fn is_github_actions() -> bool {
|
||||
std::env::var("GITHUB_ACTIONS").ok().is_some()
|
||||
fn is_ci() -> bool {
|
||||
std::env::var("CI").ok().is_some()
|
||||
}
|
||||
|
||||
fn default_pause() -> u64 {
|
||||
if is_github_actions() {
|
||||
if is_ci() {
|
||||
1000
|
||||
} else {
|
||||
200
|
||||
|
|
Loading…
Reference in a new issue