From 3edafd4f6d5c210d84f8dea4bfd976e2481a6c62 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sat, 4 Jun 2022 20:44:43 +0530 Subject: [PATCH] fix: set rate-limit=0 for tests --- .env-sample | 1 + forge/gitea/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env-sample b/.env-sample index 8672dfc..5d124f5 100644 --- a/.env-sample +++ b/.env-sample @@ -1,3 +1,4 @@ export POSTGRES_DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" export SQLITE_TMP="$(pwd)/db/db-sqlx-sqlite/tmp" export SQLITE_DATABASE_URL="sqlite://$SQLITE_TMP/admin.db" +export STARCHART__CRAWLER__WAIT_BEFORE_NEXT_API_CALL=0 diff --git a/forge/gitea/src/lib.rs b/forge/gitea/src/lib.rs index 9433dbb..abfa6ce 100644 --- a/forge/gitea/src/lib.rs +++ b/forge/gitea/src/lib.rs @@ -205,7 +205,7 @@ mod tests { let steps = NET_REPOSITORIES / PER_CRAWL; 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); } }