Skip to content

Commit

Permalink
test: use pocket-ic in e2e-tests (#495)
Browse files Browse the repository at this point in the history
* script to download pocket-ic binary

* use pocket-ic in e2e tests

* fix canister_info

* fix test_call_management

* fix test_chunk

* fix test_cycles_burn

* fix test_scheduling_many_timers

* fix test_set_global_timers

* raise init cycles

* ci.yml

* cargo update

* Revert "cargo update"

This reverts commit 6c969d0.

* pocket-ic from mono-repo tag

* run cargo test on macos too

* fix ci
  • Loading branch information
lwshang authored May 28, 2024
1 parent 223c282 commit 7fa27b0
Show file tree
Hide file tree
Showing 10 changed files with 1,364 additions and 284 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
test:
name: cargo test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-12]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -57,11 +60,12 @@ jobs:
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- name: Download ic-test-state-machine
- name: Download pocket-ic
run: |
bash scripts/download_state_machine_binary.sh
bash scripts/download_pocket_ic.sh
- name: Run tests
run: | # https://github.com/rust-lang/cargo/issues/6669 we have to run ALL tests with two commands
run:
| # https://github.com/rust-lang/cargo/issues/6669 we have to run ALL tests with two commands
cargo test --all-targets
cargo test --doc

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ examples/*/Cargo.lock
**/*.rs.bk
.DS_Store

ic-test-state-machine
e2e-tests/pocket-ic

# Generated bindings
**/declarations/
Loading

0 comments on commit 7fa27b0

Please sign in to comment.