• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

payjoin / rust-payjoin / 13820375099
83%

Build:
DEFAULT BRANCH: master
Ran 12 Mar 2025 08:00PM UTC
Jobs 1
Files 42
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Mar 2025 07:57PM UTC coverage: 79.738% (+0.04%) from 79.703%
13820375099

push

github

web-flow
Fix confusing and incorrect test condition (#571)

The v1_to_v2 test checks the v2 receiver's polling behavior, and the
directory's backwards compatible handling of that.

However, as the following diff demonstrates when applied, it's actually
the first request, the one which receives a 503 response whose data
makes it to the receiver, and the 202 status check in the test never
triggers even when that initial sender's proposal is withheld to force
the directory to respond with 202, instead triggering `.expect("proposal
should exist")`:

```diff
diff --git a/payjoin/tests/integration.rs b/payjoin/tests/integration.rs
index c500af4..3827b45 100644
--- a/payjoin/tests/integration.rs
+++ b/payjoin/tests/integration.rs
@@ -469,14 +469,14 @@ mod integration {
                             false,
                         )?
                         .extract_v1()?;
-                log::info!("send fallback v1 to offline receiver fail");
-                let res = agent
-                    .post(url.clone())
-                    .header("Content-Type", content_type)
-                    .body(body.clone())
-                    .send()
-                    .await;
-                assert!(res?.status() == StatusCode::SERVICE_UNAVAILABLE);

                 // **********************
                 // Inside the Receiver:
@@ -497,6 +497,7 @@ mod integration {
                                 "No response yet for POST payjoin request, retrying some seconds"
                             );
-                            tokio::time::sleep(std::time::Duration::from_secs(1)).await;
+                            panic!("not expecting 202");
                         } else {
                             log::error!("Unexpected response status: {}", response.status());
                             panic!("Unexpected response status: {}", response.status())
@@ -519,6 +520,10 @@ mod integration {
                     Ok::<_, BoxSendSyncError>(())
                 });

+  ... (continued)

4569 of 5730 relevant lines covered (79.74%)

806.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 13820375099.1 12 Mar 2025 08:00PM UTC 42
79.74
GitHub Action Run
Source Files on build 13820375099
  • Tree
  • List 42
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13820375099
  • 67cb2189 on github
  • Prev Build on master (#13792137471)
  • Next Build on master (#13825023058)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc