fix: set rate-limit=0 for tests

This commit is contained in:
Aravinth Manivannan 2022-06-04 20:44:43 +05:30
parent 399ef34f08
commit 3edafd4f6d
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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);
} }
} }