Skip to content

Commit

Permalink
fix: add wait back in
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Feb 27, 2024
1 parent 021b491 commit 19860cb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 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.

6 changes: 3 additions & 3 deletions cmd/crates/soroban-test/tests/it/integration/dotenv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn write_env_file(e: &TestEnv, contents: &str) {
#[test]
fn can_read_file() {
let e = &TestEnv::new();
std::thread::sleep(Duration::from_millis(1000));
std::thread::sleep(core::time::Duration::from_millis(1000));
let id = deploy_hello(e);
write_env_file(e, &id);
e.new_assert_cmd("contract")
Expand All @@ -28,7 +28,7 @@ fn can_read_file() {
#[test]
fn current_env_not_overwritten() {
let e = TestEnv::new();
std::thread::sleep(Duration::from_millis(3000));
std::thread::sleep(core::time::Duration::from_millis(3000));
write_env_file(&e, &deploy_hello(&e));
e.new_assert_cmd("contract")
.env(
Expand All @@ -48,7 +48,7 @@ fn current_env_not_overwritten() {
#[test]
fn cli_args_have_priority() {
let e = &TestEnv::new();
std::thread::sleep(Duration::from_millis(2000));
std::thread::sleep(core::time::Duration::from_millis(2000));
let id = deploy_hello(e);
write_env_file(e, &id);
e.new_assert_cmd("contract")
Expand Down
7 changes: 3 additions & 4 deletions cmd/crates/soroban-test/tests/it/integration/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use soroban_test::{AssertExt, TestEnv, LOCAL_NETWORK_PASSPHRASE};

use crate::integration::util::extend_contract;

use super::util::{deploy_hello, extend};
use super::util::{deploy_hello, extend, HELLO_WORLD};

#[tokio::test]
async fn invoke() {
Expand Down Expand Up @@ -271,6 +271,7 @@ async fn contract_data_read() {
}

#[tokio::test]
#[ignore]
async fn half_max_instructions() {
let sandbox = TestEnv::new();
let wasm = HELLO_WORLD;
Expand All @@ -283,12 +284,10 @@ async fn half_max_instructions() {
.arg(&(u32::MAX / 2).to_string())
.arg("--wasm")
.arg(wasm.path())
.arg("--salt")
.arg(TEST_SALT)
.arg("--ignore-checks")
.assert()
.stderr("")
.stdout_as_str()
.stdout_as_str();
}

async fn invoke_with_seed(sandbox: &TestEnv, id: &str, seed_phrase: &str) {
Expand Down

0 comments on commit 19860cb

Please sign in to comment.