skip IP source API tests in CI

This commit is contained in:
Kaan Barmore-Genç 2022-08-23 01:13:41 -04:00
parent 9a685be5cb
commit efce52cb03
Signed by: kaan
GPG key ID: B2E280771CD62FCF
3 changed files with 10 additions and 0 deletions

6
src/ip_source/Readme.md Normal file
View file

@ -0,0 +1,6 @@
The IP sources. These are APIs that we can query to get the IP address of the
current service.
The tests under this directory are all marked to be skipped, the tests hit the
actual APIs and can be flakey in CI. Make sure to run the tests manually if you
have to modify the code.

View file

@ -37,6 +37,7 @@ mod tests {
use super::IPSourceIcanhazip;
#[tokio::test]
#[ignore]
async fn ipv4_test() {
let ipv4 = IPSourceIcanhazip::get_ipv4()
.await
@ -47,6 +48,7 @@ mod tests {
}
#[tokio::test]
#[ignore]
async fn ipv6_test() {
let ipv6 = IPSourceIcanhazip::get_ipv6()
.await

View file

@ -29,6 +29,7 @@ mod tests {
use super::IPSourceIpify;
#[tokio::test]
#[ignore]
async fn ipv4_test() {
let ipv4 = IPSourceIpify::get_ipv4()
.await
@ -39,6 +40,7 @@ mod tests {
}
#[tokio::test]
#[ignore]
async fn ipv6_test() {
let ipv6 = IPSourceIpify::get_ipv6()
.await