Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: run integration tests against PocketIC #607

Merged
merged 24 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ic-ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: "0.22.0-beta.0"
dfx-version: "0.24.1-beta.1"

- name: Cargo cache
uses: actions/cache@v4
Expand Down Expand Up @@ -63,6 +63,20 @@ jobs:
env:
RUST_BACKTRACE: 1

- name: Run Integration Tests with PocketIC
run: |
set -ex
dfx start --background --clean --pocketic
sleep 1
export IC_REF_PORT=$(dfx info webserver-port)
export IC_UNIVERSAL_CANISTER_PATH=$HOME/canister.wasm
export IC_WALLET_CANISTER_PATH=$HOME/wallet.wasm
export POCKET_IC="yes"
cargo test --all-features -- --ignored --test-threads=1 # TODO: drop --test-threads=1
dfx stop
env:
RUST_BACKTRACE: 1

- name: Install and Configure SoftHSM
run: |
set -ex
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

* New function `Agent::fetch_pocketic_topology` to fetch the topology of a PocketIC instance.
* Make ingress_expiry required and set the default value to 3 min.
* Changed `BasicIdentity`'s implmentation from `ring` to `ed25519-consensus`.
* Added `AgentBuilder::with_max_polling_time` to config the maximum time to wait for a response from the replica.
Expand Down
Loading
Loading