Skip to content

Commit

Permalink
fix: false positive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Jul 26, 2024
1 parent 76ab19a commit a8e4f97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/send-donation/tests/my-actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("My actions", () => {
actions: [
{
label: "Send 1 SOL",
href: `/v1/send_donation/${aliceKeypair.publicKey.toBase58()}?amount=1`,
href: `/v1/send_donatio/${aliceKeypair.publicKey.toBase58()}?amount=1`,
parameters: [],
},
{
Expand Down
11 changes: 5 additions & 6 deletions znap-cli/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,12 @@ pub fn run_test_suite() {
std::process::Command::new("npm")
.arg("run")
.arg("test")
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.spawn()
.map_err(anyhow::Error::from)
.expect("Should be able to run tests")
.wait_with_output()
.output()
.expect("Should wait until the tests are over");

// if !output.status.success() {
// panic!("Test failed: {}", String::from_utf8_lossy(&output.stdout));
// }
}

pub fn wait_for_server(address: &str, port: &u16, protocol: &str) {
Expand Down

0 comments on commit a8e4f97

Please sign in to comment.