Skip to content

Commit

Permalink
Test payjoin-directory lib
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Sep 19, 2024
1 parent a60e38c commit 20208ec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contrib/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

DEPS="recent minimal"
CRATES="payjoin payjoin-cli"
CRATES="payjoin payjoin-cli payjoin-directory"

for dep in $DEPS
do
Expand Down
2 changes: 1 addition & 1 deletion contrib/test_local.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

CRATES="payjoin payjoin-cli"
CRATES="payjoin payjoin-cli payjoin-directory"

cargo --version
rustc --version
Expand Down
3 changes: 3 additions & 0 deletions payjoin-directory/contrib/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

cargo test --locked --package payjoin-directory --verbose --all-features --lib
2 changes: 1 addition & 1 deletion payjoin-directory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ mod tests {
#[tokio::test]
async fn test_post_session() -> Result<(), Box<dyn std::error::Error>> {
let base_url = "https://localhost".to_string();
let body = full("some_base64_encoded_pubkey");
let body = full("A6z245ZfDfnlk7_HiAp6sPmNaVYwADih-vCGE3eysWp7");

let request = Request::builder().method(Method::POST).uri("/").body(body)?;

Expand Down

0 comments on commit 20208ec

Please sign in to comment.