Skip to content

Commit

Permalink
clan
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed Dec 23, 2024
1 parent 11a7eff commit 2658dab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion e2e/test/admin/e2e-admin-password-enabled.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
Expand Down
19 changes: 11 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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="":
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2658dab

Please sign in to comment.