From 2d126668bd033b86ab28d7f1f383b0139d5fa557 Mon Sep 17 00:00:00 2001
From: Jiahao XU <Jiahao_XU@outlook.com>
Date: Tue, 11 Jun 2024 23:53:48 +1000
Subject: [PATCH] Fix unit test for `GhApiClient`

Set client-side rate limit to 1 request per 200 ms

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
---
 crates/binstalk-git-repo-api/src/gh_api_client.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crates/binstalk-git-repo-api/src/gh_api_client.rs b/crates/binstalk-git-repo-api/src/gh_api_client.rs
index ac7f1565..bc480f67 100644
--- a/crates/binstalk-git-repo-api/src/gh_api_client.rs
+++ b/crates/binstalk-git-repo-api/src/gh_api_client.rs
@@ -493,7 +493,7 @@ mod test {
         remote::Client::new(
             concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")),
             None,
-            NonZeroU16::new(10).unwrap(),
+            NonZeroU16::new(200).unwrap(),
             1.try_into().unwrap(),
             [],
         )