From 2658dab202c81e9b68c53af01bb9626dac6e253a Mon Sep 17 00:00:00 2001 From: Daniel Freire Date: Mon, 23 Dec 2024 09:24:49 -0300 Subject: [PATCH] clan --- .../admin/e2e-admin-password-enabled.test.ts | 1 - justfile | 19 +++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/e2e/test/admin/e2e-admin-password-enabled.test.ts b/e2e/test/admin/e2e-admin-password-enabled.test.ts index 0f20ae660..4687542b4 100644 --- a/e2e/test/admin/e2e-admin-password-enabled.test.ts +++ b/e2e/test/admin/e2e-admin-password-enabled.test.ts @@ -9,7 +9,6 @@ describe("Admin Password (with password set)", () => { it("should reject requests without password", async () => { const error = await sendAndGetError("stratus_enableTransactions", []); - console.log(error); expect(error.code).eq(-32009); // Internal error expect(error.message).to.contain("Incorrect password"); }); diff --git a/justfile b/justfile index 470ec16a2..62f4fd657 100644 --- a/justfile +++ b/justfile @@ -169,14 +169,14 @@ e2e-admin-password: ADMIN_PASSWORD=test123 just run -a 0.0.0.0:3000 > /dev/null & just _wait_for_stratus npx hardhat test test/admin/e2e-admin-password-enabled.test.ts --network stratus - killport 3000 + killport 3000 -s sigterm # Start Stratus without password set just _log "Running admin password tests without password set" just run -a 0.0.0.0:3000 > /dev/null & just _wait_for_stratus npx hardhat test test/admin/e2e-admin-password-disabled.test.ts --network stratus - killport 3000 + killport 3000 -s sigterm # E2E: Starts and execute Hardhat tests in Hardhat e2e-hardhat block-mode="automine" test="": @@ -505,14 +505,20 @@ contracts-coverage-erase: stratus-test-coverage *args="": #!/bin/bash # setup - just contracts-clone + cargo llvm-cov clean --workspace + just build source <(cargo llvm-cov show-env --export-prefix) export RUST_LOG=error - cargo llvm-cov clean --workspace - just build + just contracts-clone + + # cargo test + cargo llvm-cov --no-report + sleep 10 + # inmemory + just e2e-stratus automine sleep 10 -rm stratus.log @@ -551,8 +557,6 @@ stratus-test-coverage *args="": -rm stratus.log # other - cargo llvm-cov --no-report - sleep 10 -just contracts-clone --token -just contracts-flatten --token @@ -616,7 +620,6 @@ stratus-test-coverage *args="": -rm -r e2e_logs -rm utils/deploy/deploy_01.log -rm utils/deploy/deploy_02.log - */ just e2e-admin-password