Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit b0a6152

Browse files
author
Juuso Takalainen
committed
Remove the rest of Date.now() pseudo-ids
just to guard against the super improbable failure of shared ids in parallel-run tests
1 parent aebff64 commit b0a6152

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration/dataunion/withdraw.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,8 @@ describe('DataUnion withdraw', () => {
233233
}, 3600000)
234234

235235
it('to any address', () => {
236-
const outsiderWallet = new Wallet(`0x100000000000000000000000000000000000000012300000002${Date.now()}`, providerSidechain)
236+
testWalletId += 1
237+
const outsiderWallet = new Wallet(`0x100000000000000000000000000000000000000012300000002${testWalletId}`, providerSidechain)
237238
return testWithdraw(async (dataUnionAddress, memberClient) => (
238239
memberClient.getDataUnion(dataUnionAddress).withdrawAllTo(outsiderWallet.address, options)
239240
), outsiderWallet.address, true, options)
@@ -250,7 +251,8 @@ describe('DataUnion withdraw', () => {
250251
}, 3600000)
251252

252253
it("to anyone with member's signature", async () => {
253-
const member2Wallet = new Wallet(`0x100000000000000000000000000040000000000012300000007${Date.now()}`, providerSidechain)
254+
testWalletId += 1
255+
const member2Wallet = new Wallet(`0x100000000000000000000000000040000000000012300000007${testWalletId}`, providerSidechain)
254256
return testWithdraw(async (dataUnionAddress, memberClient, memberWallet, adminClient) => {
255257
const signature = await memberClient.getDataUnion(dataUnionAddress).signWithdrawAllTo(member2Wallet.address)
256258
return adminClient

0 commit comments

Comments
 (0)