Skip to content

Commit

Permalink
chore: increase postage batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed May 27, 2021
1 parent 64bd451 commit 14284f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ const batchId: Record<string, Address> = {}
export async function getPostageBatch(url = beeUrl()): Promise<Address> {
if (!batchId[url]) {
try {
batchId[url] = await createPostageBatch(url, BigInt('1000'), 25)
batchId[url] = await createPostageBatch(url, BigInt('10'), 253)
} catch (e) {
await sleep(500)

const batches = await getAllPostageBatches(url)

if (!batches.length) {
batchId[url] = await createPostageBatch(url, BigInt('1000'), 25)
batchId[url] = await createPostageBatch(url, BigInt('10'), 253)
} else {
batchId[url] = batches[0].batchID
}
Expand Down

0 comments on commit 14284f9

Please sign in to comment.