Skip to content

Commit

Permalink
[test]: remove node-fetch, use native instead
Browse files Browse the repository at this point in the history
The bug caused error to appear in CI:

  node-fetch/node-fetch#1735

Signed-off-by: Dmitry Balashov <a.marcius26@gmail.com>
  • Loading branch information
0x009922 committed Nov 1, 2023
1 parent 856e450 commit 37f7d7d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion packages/client/test/integration/test-node/package.json
Expand Up @@ -12,7 +12,6 @@
"cross-env": "^7.0.3",
"fp-ts": "^2.13.1",
"immer": "^9.0.19",
"node-fetch": "^3.3.0",
"vite": "^4.5.0"
}
}
3 changes: 1 addition & 2 deletions packages/client/test/integration/test-node/test/test-util.ts
@@ -1,4 +1,3 @@
import nodeFetch from 'node-fetch'
import { CLIENT_CONFIG } from '@iroha2/test-configuration'
import { Client, Signer, Torii } from '@iroha2/client'
import { adapter as WS } from '@iroha2/client/web-socket/node'
Expand All @@ -11,7 +10,7 @@ export function clientFactory() {

const signer = new Signer(accountId, keyPair)

const pre = { ...CLIENT_CONFIG.torii, ws: WS, fetch: nodeFetch as typeof fetch }
const pre = { ...CLIENT_CONFIG.torii, ws: WS, fetch }

const client = new Client({ signer })

Expand Down
4 changes: 0 additions & 4 deletions packages/test-configuration/src/lib.ts
Expand Up @@ -164,10 +164,6 @@ export const PEER_CONFIG = {
KURA: {
BLOCK_STORE_PATH: './storage',
},
// TODO: remove
LOGGER: {
MAX_LOG_LEVEL: 'TRACE'
}
}

const parseAccountId = (acc: string): datamodel.AccountId => {
Expand Down
9 changes: 3 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37f7d7d

Please sign in to comment.