Skip to content

Commit

Permalink
ci: fix http 422 errors (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 authored Oct 28, 2024
1 parent c949384 commit 3d0511c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* https://jestjs.io/docs/en/configuration.html
*/
import type { Config } from '@jest/types'
import { BeeRequestOptions } from './src'
import { createPostageBatch } from './src/modules/debug/stamps'
import { Bee, BeeRequestOptions } from './src'

import { Types } from 'cafe-utility'
import { DEFAULT_BATCH_AMOUNT, DEFAULT_BATCH_DEPTH } from './test/utils'

export default async (): Promise<Config.InitialOptions> => {
Expand Down Expand Up @@ -33,11 +33,12 @@ export default async (): Promise<Config.InitialOptions> => {
}

const stamps = await Promise.all(
stampsOrder.map(async order =>
createPostageBatch(order.requestOptions, DEFAULT_BATCH_AMOUNT, DEFAULT_BATCH_DEPTH, {
stampsOrder.map(async order => {
const bee = new Bee(Types.asString(order.requestOptions.baseURL))
return bee.createPostageBatch(DEFAULT_BATCH_AMOUNT, DEFAULT_BATCH_DEPTH, {
waitForUsable: true,
}),
),
})
}),
)

for (let i = 0; i < stamps.length; i++) {
Expand Down

0 comments on commit 3d0511c

Please sign in to comment.