Fix flaky UI-E2E (#178)
* Change user * jobs * Revert "Change user" 5fa7084f06e743f2981035d254a5ca287c41b02b * Trying to use block generator address * jobs * Fixed * 5 jobs * 10 jobs * all jobs * finish * Removed jobs * Add funds for block generator in block genesis
This commit is contained in:
parent
52239a9506
commit
2be0e9f363
@ -11,6 +11,10 @@
|
||||
"address": "0xaaB52d66283F7A1D5978bcFcB55721ACB467384b",
|
||||
"privateKey": "0x8e829f695aed89a154550f30262f1529582cc49dc30eff74a6b491359e0230f9"
|
||||
},
|
||||
"blockGenerator": {
|
||||
"address": "0xB4579fd5AfEaB60B03Db3F408AAdD315035943f7",
|
||||
"privateKey": "0xd6143d390d8b28c33601bb0fe29392fb1c35c24ccfe8722c09c2bdd6ada2699f"
|
||||
},
|
||||
"nativeToErcBridge": {
|
||||
"home": "0x32198D570fffC7033641F8A9094FFDCaAEF42624",
|
||||
"foreign": "0x2B6871b9B02F73fa24F4864322CdC78604207769",
|
||||
|
@ -3,16 +3,19 @@ const { generateNewBlock } = require('../utils')
|
||||
|
||||
const homeWeb3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8541'))
|
||||
const foreignWeb3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8542'))
|
||||
const {user} = require('../constants.json');
|
||||
const {user, blockGenerator} = require('../constants.json');
|
||||
|
||||
homeWeb3.eth.accounts.wallet.add(user.privateKey)
|
||||
foreignWeb3.eth.accounts.wallet.add(user.privateKey)
|
||||
homeWeb3.eth.accounts.wallet.add(blockGenerator.privateKey)
|
||||
foreignWeb3.eth.accounts.wallet.add(blockGenerator.privateKey)
|
||||
|
||||
function main() {
|
||||
setTimeout(async () => {
|
||||
generateNewBlock(homeWeb3, user.address)
|
||||
generateNewBlock(foreignWeb3, user.address)
|
||||
generateNewBlock(homeWeb3, blockGenerator.address)
|
||||
generateNewBlock(foreignWeb3, blockGenerator.address)
|
||||
main()
|
||||
}, 5000)
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
main()
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user