tests: fix flaky tests

This commit is contained in:
Stevan Freeborn
2026-03-25 20:14:24 -05:00
parent 77dd25f8d8
commit f30ad7dd97
4 changed files with 92 additions and 28 deletions
+4 -5
View File
@@ -4,15 +4,14 @@ use integration_common::{build_client, build_client_with_key};
#[tokio::test]
#[ignore]
async fn ping_should_succeed() {
async fn ping_should_succeed_with_api_key() {
let client = build_client();
client.ping().await.unwrap();
}
#[tokio::test]
#[ignore]
async fn ping_should_fail_with_invalid_api_key() {
let client = build_client_with_key("invalid");
let result = client.ping().await;
assert!(result.is_err());
async fn ping_should_succeed_without_api_key() {
let client = build_client_with_key("");
client.ping().await.unwrap();
}