Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
eeac990e
Unverified
Commit
eeac990e
authored
Nov 10, 2021
by
Matthew Slipper
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration-tests: skip all tests on mainnet subject to wd period
parent
01b80f37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
7 deletions
+37
-7
bridged-tokens.ts
integration-tests/test/bridged-tokens.ts
+15
-3
native-eth.spec.ts
integration-tests/test/native-eth.spec.ts
+22
-4
No files found.
integration-tests/test/bridged-tokens.ts
View file @
eeac990e
...
...
@@ -4,7 +4,7 @@ import * as L2Artifact from '@eth-optimism/contracts/artifacts/contracts/standar
import
{
expect
}
from
'
chai
'
import
{
OptimismEnv
}
from
'
./shared/env
'
import
{
isLiveNetwork
}
from
'
./shared/utils
'
import
{
isLiveNetwork
,
isMainnet
}
from
'
./shared/utils
'
import
{
Direction
}
from
'
./shared/watcher-utils
'
describe
(
'
Bridged tokens
'
,
()
=>
{
...
...
@@ -89,7 +89,13 @@ describe('Bridged tokens', () => {
)
})
it
(
'
should withdraw tokens from L2 to the depositor
'
,
async
()
=>
{
it
(
'
should withdraw tokens from L2 to the depositor
'
,
async
function
()
{
if
(
await
isMainnet
(
env
))
{
console
.
log
(
'
Skipping withdrawals test on mainnet.
'
)
this
.
skip
()
return
}
const
tx
=
await
env
.
l2Bridge
.
withdraw
(
L2__ERC20
.
address
,
500
,
...
...
@@ -106,7 +112,13 @@ describe('Bridged tokens', () => {
)
}).
timeout
(
isLiveNetwork
()
?
300
_000
:
120
_000
)
it
(
'
should withdraw tokens from L2 to the transfer recipient
'
,
async
()
=>
{
it
(
'
should withdraw tokens from L2 to the transfer recipient
'
,
async
function
()
{
if
(
await
isMainnet
(
env
))
{
console
.
log
(
'
Skipping withdrawals test on mainnet.
'
)
this
.
skip
()
return
}
const
tx
=
await
env
.
l2Bridge
.
connect
(
otherWalletL2
)
.
withdraw
(
L2__ERC20
.
address
,
500
,
2000000
,
'
0x
'
)
...
...
integration-tests/test/native-eth.spec.ts
View file @
eeac990e
...
...
@@ -9,7 +9,7 @@ import { expectApprox } from '@eth-optimism/core-utils'
/* Imports: Internal */
import
{
Direction
}
from
'
./shared/watcher-utils
'
import
{
PROXY_SEQUENCER_ENTRYPOINT_ADDRESS
}
from
'
./shared/utils
'
import
{
isMainnet
,
PROXY_SEQUENCER_ENTRYPOINT_ADDRESS
}
from
'
./shared/utils
'
import
{
OptimismEnv
}
from
'
./shared/env
'
const
DEFAULT_TEST_GAS_L1
=
330
_000
...
...
@@ -183,7 +183,13 @@ describe('Native ETH Integration Tests', async () => {
).
to
.
be
.
reverted
})
it
(
'
withdraw
'
,
async
()
=>
{
it
(
'
withdraw
'
,
async
function
()
{
if
(
await
isMainnet
(
env
))
{
console
.
log
(
'
Skipping withdrawals test on mainnet.
'
)
this
.
skip
()
return
}
const
withdrawAmount
=
BigNumber
.
from
(
3
)
const
preBalances
=
await
getBalances
(
env
)
expect
(
...
...
@@ -225,7 +231,13 @@ describe('Native ETH Integration Tests', async () => {
)
})
it
(
'
withdrawTo
'
,
async
()
=>
{
it
(
'
withdrawTo
'
,
async
function
()
{
if
(
await
isMainnet
(
env
))
{
console
.
log
(
'
Skipping withdrawals test on mainnet.
'
)
this
.
skip
()
return
}
const
withdrawAmount
=
BigNumber
.
from
(
3
)
const
preBalances
=
await
getBalances
(
env
)
...
...
@@ -283,7 +295,13 @@ describe('Native ETH Integration Tests', async () => {
)
})
it
(
'
deposit, transfer, withdraw
'
,
async
()
=>
{
it
(
'
deposit, transfer, withdraw
'
,
async
function
()
{
if
(
await
isMainnet
(
env
))
{
console
.
log
(
'
Skipping withdrawals test on mainnet.
'
)
this
.
skip
()
return
}
// 1. deposit
const
amount
=
utils
.
parseEther
(
'
1
'
)
await
env
.
waitForXDomainTransaction
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment