Skip to content

Commit

Permalink
fix the dry-run e2e test to actually perform dry runs (#1111)
Browse files Browse the repository at this point in the history
For some reason the e2e test for dry-run's was actually running
`transfer_back`, this corrects that to use the actual dry run test impl.

Also includes jemalloc in the e2e integration tests to more closely
represent production.
  • Loading branch information
crypto523 committed Apr 11, 2023
1 parent f206de5 commit d37472b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions bin/e2e-test-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ futures = "0.3"
humantime-serde = "1.1"
libtest-mimic = "0.6.0"
serde = { workspace = true }
tikv-jemallocator = "0.5"
tokio = { workspace = true }
toml = { version = "0.5" }

Expand Down
2 changes: 1 addition & 1 deletion bin/e2e-test-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub fn main_body(config: SuiteConfig, mut args: Arguments) {
with_cloned(&config, |config| {
async_execute(async {
let ctx = TestContext::new(config).await;
tests::transfers::transfer_back(&ctx).await
tests::script::dry_run(&ctx).await
})?;
Ok(())
}),
Expand Down
4 changes: 4 additions & 0 deletions bin/e2e-test-client/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ use fuel_core_e2e_client::config::SuiteConfig;
use std::fs;
use tempfile::TempDir; // Used for writing assertions // Run programs

// Use Jemalloc
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[tokio::test(flavor = "multi_thread")]
async fn works_in_local_env() {
// setup a local node
Expand Down

0 comments on commit d37472b

Please sign in to comment.