Remove access lists tests from ultimate test suites (#488)
This commit is contained in:
parent
683fa0728d
commit
12269d7426
@ -80,43 +80,46 @@ describe('arbitrary message bridging', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should confirm but not relay message from blocked contract', async () => {
|
// allowance/block lists files are not mounted to the host during the ultimate test
|
||||||
const newValue = 4
|
if (process.env.ULTIMATE !== 'true') {
|
||||||
|
it('should confirm but not relay message from blocked contract', async () => {
|
||||||
|
const newValue = 4
|
||||||
|
|
||||||
const initialValue = await foreignBox.methods.value().call()
|
const initialValue = await foreignBox.methods.value().call()
|
||||||
assert(!toBN(initialValue).eq(toBN(newValue)), 'initial value should be different from new value')
|
assert(!toBN(initialValue).eq(toBN(newValue)), 'initial value should be different from new value')
|
||||||
|
|
||||||
const signatures = await homeBridge.getPastEvents('SignedForUserRequest', {
|
const signatures = await homeBridge.getPastEvents('SignedForUserRequest', {
|
||||||
fromBlock: 0,
|
fromBlock: 0,
|
||||||
toBlock: 'latest'
|
toBlock: 'latest'
|
||||||
})
|
|
||||||
|
|
||||||
await blockHomeBox.methods
|
|
||||||
.setValueOnOtherNetwork(newValue, amb.home, amb.foreignBox)
|
|
||||||
.send({
|
|
||||||
from: user.address,
|
|
||||||
gas: '400000'
|
|
||||||
})
|
|
||||||
.catch(e => {
|
|
||||||
console.error(e)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
await delay(5000)
|
await blockHomeBox.methods
|
||||||
|
.setValueOnOtherNetwork(newValue, amb.home, amb.foreignBox)
|
||||||
|
.send({
|
||||||
|
from: user.address,
|
||||||
|
gas: '400000'
|
||||||
|
})
|
||||||
|
.catch(e => {
|
||||||
|
console.error(e)
|
||||||
|
})
|
||||||
|
|
||||||
const newSignatures = await homeBridge.getPastEvents('SignedForUserRequest', {
|
await delay(5000)
|
||||||
fromBlock: 0,
|
|
||||||
toBlock: 'latest'
|
const newSignatures = await homeBridge.getPastEvents('SignedForUserRequest', {
|
||||||
|
fromBlock: 0,
|
||||||
|
toBlock: 'latest'
|
||||||
|
})
|
||||||
|
|
||||||
|
assert(
|
||||||
|
newSignatures.length === signatures.length + requiredSignatures,
|
||||||
|
`Incorrect amount of signatures submitted, got ${newSignatures.length}, expected ${signatures.length +
|
||||||
|
requiredSignatures}`
|
||||||
|
)
|
||||||
|
|
||||||
|
const value = await foreignBox.methods.value().call()
|
||||||
|
assert(!toBN(value).eq(toBN(newValue)), 'Message should not be relayed by oracle automatically')
|
||||||
})
|
})
|
||||||
|
}
|
||||||
assert(
|
|
||||||
newSignatures.length === signatures.length + requiredSignatures,
|
|
||||||
`Incorrect amount of signatures submitted, got ${newSignatures.length}, expected ${signatures.length +
|
|
||||||
requiredSignatures}`
|
|
||||||
)
|
|
||||||
|
|
||||||
const value = await foreignBox.methods.value().call()
|
|
||||||
assert(!toBN(value).eq(toBN(newValue)), 'Message should not be relayed by oracle automatically')
|
|
||||||
})
|
|
||||||
|
|
||||||
it('should confirm but not relay message from manual lane', async () => {
|
it('should confirm but not relay message from manual lane', async () => {
|
||||||
const newValue = 5
|
const newValue = 5
|
||||||
|
Loading…
Reference in New Issue
Block a user