-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update fund error handling * fix * fix * add test * fix * fix
- Loading branch information
1 parent
4a7349f
commit ba24fda
Showing
4 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
mod bindings; | ||
mod custom_types; | ||
mod dotenv; | ||
mod fund; | ||
mod hello_world; | ||
mod tx; | ||
mod util; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use soroban_test::TestEnv; | ||
|
||
#[tokio::test] | ||
#[allow(clippy::too_many_lines)] | ||
async fn fund() { | ||
let sandbox = &TestEnv::new(); | ||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("generate") | ||
.arg("test") | ||
.assert() | ||
.success(); | ||
sandbox | ||
.new_assert_cmd("keys") | ||
.arg("fund") | ||
.arg("test") | ||
.assert() | ||
.stderr(predicates::str::contains("funding failed")); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters