Skip to content

Commit

Permalink
build(deps): bump tokio from 1.40.0 to 1.43.0 (#5370)
Browse files Browse the repository at this point in the history
* build(deps): bump tokio from 1.40.0 to 1.43.0

Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.40.0 to 1.43.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.40.0...tokio-1.43.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* wip: test if token is set

* Try with an artifical delay between calls

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Häggblad <[email protected]>
  • Loading branch information
dependabot[bot] and octol authored Feb 5, 2025
1 parent 3a21cfa commit 23a7f01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ tar = "0.4.43"
tempfile = "3.15"
thiserror = "2.0"
time = "0.3.37"
tokio = "1.39"
tokio = "1.43"
tokio-stream = "0.1.17"
tokio-test = "0.4.4"
tokio-tun = "0.11.5"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ pub(crate) mod ipinfo {
#[cfg(test)]
mod api_regression {

use tokio::time::sleep;

use super::*;
use std::{env::var, sync::LazyLock};
use std::{env::var, sync::LazyLock, time::Duration};

static IPINFO_TOKEN: LazyLock<Option<String>> = LazyLock::new(|| var("IPINFO_API_TOKEN").ok());
static CI: LazyLock<Option<String>> = LazyLock::new(|| var("CI").ok());
Expand All @@ -174,6 +176,9 @@ mod api_regression {
let location_result = client.locate_ip(my_ip).await;
assert!(location_result.is_ok(), "Did ipinfo response change?");

// Artifical sleep to avoid rate limit
sleep(Duration::from_secs(2)).await;

client
.check_remaining_bandwidth()
.await
Expand Down

0 comments on commit 23a7f01

Please sign in to comment.