mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-16 15:46:36 +00:00
Only use CI_UNIT_TEST_GITHUB_TOKEN
in unit testing
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
b5831b2137
commit
6e0f9cd6da
1 changed files with 1 additions and 3 deletions
|
@ -508,9 +508,7 @@ mod test {
|
||||||
|
|
||||||
let mut gh_clients = vec![GhApiClient::new(client.clone(), None)];
|
let mut gh_clients = vec![GhApiClient::new(client.clone(), None)];
|
||||||
|
|
||||||
if let Ok(token) =
|
if let Ok(token) = env::var("CI_UNIT_TEST_GITHUB_TOKEN") {
|
||||||
env::var("CI_UNIT_TEST_GITHUB_TOKEN").or_else(|_| env::var("GITHUB_TOKEN"))
|
|
||||||
{
|
|
||||||
gh_clients.push(GhApiClient::new(client, Some(token.into())));
|
gh_clients.push(GhApiClient::new(client, Some(token.into())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue