From b6cb0a0e51affaa5a168ec64bb205d8c84eb2275 Mon Sep 17 00:00:00 2001 From: xstoicunicornx Date: Mon, 8 Jun 2026 09:55:13 -0500 Subject: [PATCH] Fix commented test assert --- payjoin/src/core/receive/v2/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payjoin/src/core/receive/v2/mod.rs b/payjoin/src/core/receive/v2/mod.rs index e99e8b08c..e3762454a 100644 --- a/payjoin/src/core/receive/v2/mod.rs +++ b/payjoin/src/core/receive/v2/mod.rs @@ -2052,10 +2052,10 @@ pub mod test { .process_error_response(&response, ctx) .save(&persister) .expect_err("fatal response should error"); - let pending_fallback = err.error_state().expect("pending fallback should be carried"); + assert!(err.api_error_ref().is_some()); + let pending_fallback = err.error_state().expect("pending fallback should be carried"); assert_eq!(pending_fallback.fallback_tx(), &expected_tx); - // assert!(err.api_error_ref().is_some()); assert_events(&persister, &[SessionEvent::ProtocolFailed], false); Ok(()) }