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
83171e15
Commit
83171e15
authored
Feb 26, 2023
by
Sebastian Stammler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: Increase timeouts in tests that wait for finalization
parent
886e7a87
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
system_test.go
op-e2e/system_test.go
+3
-3
system_tob_test.go
op-e2e/system_tob_test.go
+2
-2
No files found.
op-e2e/system_test.go
View file @
83171e15
...
...
@@ -367,9 +367,9 @@ func TestFinalize(t *testing.T) {
l2Seq
:=
sys
.
Clients
[
"sequencer"
]
// as configured in the extra geth lifecycle in testing setup
finalizedDistance
:=
uint64
(
8
)
const
finalizedDistance
=
8
// Wait enough time for L1 to finalize and L2 to confirm its data in finalized L1 blocks
<-
time
.
After
(
time
.
Duration
((
finalizedDistance
+
4
)
*
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
time
.
Sleep
(
time
.
Duration
((
finalizedDistance
+
6
)
*
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
// fetch the finalizes head of geth
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
1
*
time
.
Second
)
...
...
@@ -883,7 +883,7 @@ func TestWithdrawals(t *testing.T) {
require
.
Nil
(
t
,
err
)
// Get l2BlockNumber for proof generation
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
3
0
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
4
0
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
defer
cancel
()
blockNumber
,
err
:=
withdrawals
.
WaitForFinalizationPeriod
(
ctx
,
l1Client
,
predeploys
.
DevOptimismPortalAddr
,
receipt
.
BlockNumber
)
require
.
Nil
(
t
,
err
)
...
...
op-e2e/system_tob_test.go
View file @
83171e15
...
...
@@ -527,7 +527,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
transactor
.
ExpectedL2Nonce
=
transactor
.
ExpectedL2Nonce
+
1
// Wait for the finalization period, then we can finalize this withdrawal.
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
25
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
40
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
blockNumber
,
err
:=
withdrawals
.
WaitForFinalizationPeriod
(
ctx
,
l1Client
,
predeploys
.
DevOptimismPortalAddr
,
receipt
.
BlockNumber
)
cancel
()
require
.
Nil
(
t
,
err
)
...
...
@@ -657,7 +657,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
require
.
Equal
(
t
,
types
.
ReceiptStatusSuccessful
,
proveReceipt
.
Status
)
// Wait for finalization and then create the Finalized Withdrawal Transaction
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
4
0
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
4
5
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
defer
cancel
()
_
,
err
=
withdrawals
.
WaitForFinalizationPeriod
(
ctx
,
l1Client
,
predeploys
.
DevOptimismPortalAddr
,
header
.
Number
)
require
.
Nil
(
t
,
err
)
...
...
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