Skip to content

Commit

Permalink
fix: use instruction and remove sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Feb 27, 2024
1 parent 8005b86 commit ab60cf5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions cmd/crates/soroban-test/tests/it/integration/dotenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ fn write_env_file(e: &TestEnv, contents: &str) {
#[test]
fn can_read_file() {
let e = &TestEnv::new();
std::thread::sleep(Duration::from_millis(1000));
let id = deploy_hello(e);
write_env_file(e, &id);
e.new_assert_cmd("contract")
Expand All @@ -30,7 +29,6 @@ fn can_read_file() {
#[test]
fn current_env_not_overwritten() {
let e = TestEnv::new();
std::thread::sleep(Duration::from_millis(3000));
write_env_file(&e, &deploy_hello(&e));
e.new_assert_cmd("contract")
.env(
Expand All @@ -50,7 +48,6 @@ fn current_env_not_overwritten() {
#[test]
fn cli_args_have_priority() {
let e = &TestEnv::new();
std::thread::sleep(Duration::from_millis(2000));
let id = deploy_hello(e);
write_env_file(e, &id);
e.new_assert_cmd("contract")
Expand Down
2 changes: 2 additions & 0 deletions cmd/crates/soroban-test/tests/it/integration/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ pub fn deploy_contract(sandbox: &TestEnv, wasm: &Wasm) -> String {
.arg("deploy")
.arg("--fee")
.arg("1000000")
.arg("--instructions")
.arg("10000000000")
.arg("--wasm")
.arg(wasm.path())
.arg("--salt")
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/commands/contract/invoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl NetworkRunnable for Cmd {
&signers,
&network.network_passphrase,
Some(log_events),
(global_args.verbose || global_args.very_verbose || self.fee.cost)
(verbose || very_verbose || self.fee.cost)
.then_some(log_resources),
)
.await?;
Expand Down

0 comments on commit ab60cf5

Please sign in to comment.