Skip to content

Commit e4433c9

Browse files
committed
fix tests
1 parent 79660d0 commit e4433c9

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

src/utils.rs

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ use serde::Serialize;
44

55
use crate::AuthorizationContext;
66

7-
pub const PRIVY_AUTHORIZATION_HEADER: &str = "privy-authorization-signature";
8-
97
/// A convenience wrapper used as a namespace for utility functions
108
pub struct Utils(pub(crate) String);
119
/// A convenience wrapper used as a namespace for utility functions
@@ -181,11 +179,13 @@ mod tests {
181179

182180
use super::*;
183181
use crate::{
184-
AuthorizationContext, IntoKey, PrivateKey, PrivateKeyFromFile, PrivyClient,
182+
AuthorizationContext, IntoKey, PrivateKey, PrivateKeyFromFile,
185183
generated::types::{OwnerInput, PublicKeyOwner, UpdateWalletBody},
186184
get_auth_header,
187185
};
188186

187+
const TEST_PRIVATE_KEY_PEM: &str = include_str!("../tests/test_private_key.pem");
188+
189189
#[tokio::test]
190190
async fn test_build_canonical_request() {
191191
let key = PrivateKeyFromFile("private_key.pem".into());
@@ -610,19 +610,6 @@ mod tests {
610610
assert!(result.is_ok(), "serde_json handles NaN gracefully");
611611
}
612612

613-
// Integration tests with staging environment
614-
#[tokio::test]
615-
#[ignore] // Only run when STAGING_* env vars are set
616-
async fn test_client_creation_staging() {
617-
let (app_id, app_secret, url) = get_staging_env();
618-
619-
let result = PrivyClient::new_with_url(app_id, app_secret, &url);
620-
assert!(
621-
result.is_ok(),
622-
"Should successfully create client with staging credentials"
623-
);
624-
}
625-
626613
// Test auth header generation
627614
#[test]
628615
fn test_auth_header_generation() {

0 commit comments

Comments
 (0)