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>
This commit is contained in:
Jiahao XU 2024-06-11 23:53:48 +10:00
parent 238e0f6318
commit 2d126668bd
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928

View file

@ -493,7 +493,7 @@ mod test {
remote::Client::new( remote::Client::new(
concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")), concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")),
None, None,
NonZeroU16::new(10).unwrap(), NonZeroU16::new(200).unwrap(),
1.try_into().unwrap(), 1.try_into().unwrap(),
[], [],
) )