Skip to content

Commit

Permalink
more test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Oct 23, 2023
1 parent 5da9f94 commit 831d951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mitm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: pip3 install mitmproxy~=8.0.0
- run: pip3 install mitmproxy~=10.0.0

- run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"

Expand All @@ -55,7 +55,7 @@ jobs:
--modify-headers '/~s/Transfer-Encoding/' \
--modify-body '/~s/Hello/Hullo' \
&
sleep 5
sleep 20
- name: mitm e2e
env:
Expand Down
3 changes: 2 additions & 1 deletion e2e/browser/cypress/e2e/ecdsa.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ECDSAKeyIdentity } from '@dfinity/identity';
import { get, set } from 'idb-keyval';
import { createActor } from '../utils/actor';
import ids from '../../.dfx/local/canister_ids.json';
import fetch from 'isomorphic-fetch';
const canisterId = ids.whoami.local;

const setup = async () => {
Expand Down Expand Up @@ -37,7 +38,7 @@ describe('ECDSAKeyIdentity tests with SubtleCrypto', () => {
const identity2 = await ECDSAKeyIdentity.fromKeyPair(storedKeyPair);

const whoami2 = createActor(canisterId, {
agentOptions: { verifyQuerySignatures: false, identity: identity2 },
agentOptions: { verifyQuerySignatures: false, identity: identity2, fetch },
});

const principal2 = await whoami2.whoami();
Expand Down

0 comments on commit 831d951

Please sign in to comment.