Skip to content

Commit 8ba07fc

Browse files
chore: Fix unresolvable_did test case, which timed out for some users (#1288)
(Replace test asset with a new one that points to a different site.)
1 parent 689f40d commit 8ba07fc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sdk/src/identity/tests/claim_aggregation/validation.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -736,10 +736,11 @@ async fn unsupported_did_method() {
736736
assert!(log_items.next().is_none());
737737
}
738738

739-
// TO DO (CAI-7996): Not sure why this doesn't run on Wasm/WASI.
740-
#[cfg(not(target_arch = "wasm32"))]
741-
#[tokio::test]
742-
#[ignore] // (CAI-9157) This is timing out every time it runs. See https://github.com/contentauth/c2pa-rs/issues/1277
739+
#[cfg_attr(not(target_arch = "wasm32"), tokio::test)]
740+
#[cfg_attr(
741+
all(target_arch = "wasm32", not(target_os = "wasi")),
742+
wasm_bindgen_test
743+
)]
743744
async fn unresolvable_did() {
744745
// If the DID can not be resolved, the validator MUST issue the failure code
745746
// `cawg.ica.did_unavailable` but MAY continue validation.
@@ -791,7 +792,7 @@ async fn unresolvable_did() {
791792
.err_val
792793
.as_ref()
793794
.unwrap(),
794-
"SignatureError(DidResolutionError(\"the document was not found: https://example.com/.well-known/did.json\"))");
795+
"SignatureError(DidResolutionError(\"the document was not found: https://cawg-test-data.github.io/test-case/unresolvable-did/did.json\"))");
795796

796797
assert_eq!(
797798
li.validation_status.as_ref().unwrap(),
0 Bytes
Loading

0 commit comments

Comments
 (0)