Skip to content

Commit

Permalink
Add init() call in issuer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thobson88 committed Oct 7, 2024
1 parent 5623f79 commit 563a438
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trustchain-http/src/issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ mod tests {
vc::{Credential, CredentialSubject, Issuer, URI},
};
use std::{collections::HashMap, sync::Arc};
use trustchain_core::utils::init;
use trustchain_core::{utils::canonicalize, verifier::Verifier};
use trustchain_ion::{trustchain_resolver, verifier::TrustchainVerifier};

Expand Down Expand Up @@ -337,6 +338,7 @@ mod tests {
#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_post_issuer_credential() {
init();
let app = TrustchainRouter::from(Arc::new(AppState::new_with_cache(
TEST_HTTP_CONFIG.to_owned(),
serde_json::from_str(CREDENTIALS).unwrap(),
Expand Down Expand Up @@ -390,6 +392,7 @@ mod tests {
#[tokio::test]
#[ignore = "integration test requires ION, MongoDB, IPFS and Bitcoin RPC"]
async fn test_post_issuer_rss_credential() {
init();
let app = TrustchainRouter::from(Arc::new(AppState::new_with_cache(
TEST_HTTP_CONFIG.to_owned(),
serde_json::from_str(CREDENTIALS).unwrap(),
Expand Down

0 comments on commit 563a438

Please sign in to comment.