fix: set rate-limit=0 for tests
This commit is contained in:
parent
399ef34f08
commit
3edafd4f6d
2 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
export POSTGRES_DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"
|
export POSTGRES_DATABASE_URL="postgres://postgres:password@localhost:5432/postgres"
|
||||||
export SQLITE_TMP="$(pwd)/db/db-sqlx-sqlite/tmp"
|
export SQLITE_TMP="$(pwd)/db/db-sqlx-sqlite/tmp"
|
||||||
export SQLITE_DATABASE_URL="sqlite://$SQLITE_TMP/admin.db"
|
export SQLITE_DATABASE_URL="sqlite://$SQLITE_TMP/admin.db"
|
||||||
|
export STARCHART__CRAWLER__WAIT_BEFORE_NEXT_API_CALL=0
|
||||||
|
|
|
@ -205,7 +205,7 @@ mod tests {
|
||||||
let steps = NET_REPOSITORIES / PER_CRAWL;
|
let steps = NET_REPOSITORIES / PER_CRAWL;
|
||||||
|
|
||||||
for i in 0..steps {
|
for i in 0..steps {
|
||||||
let res = ctx.crawl(PER_CRAWL, i, 1).await;
|
let res = ctx.crawl(PER_CRAWL, i, 0).await;
|
||||||
assert_eq!(res.repos.len() as u64, PER_CRAWL);
|
assert_eq!(res.repos.len() as u64, PER_CRAWL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue