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
5dccbfdd
Commit
5dccbfdd
authored
Feb 02, 2023
by
Sebastian Stammler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-2e2: Bump timeout in TestMixedWithdrawalValidity
- also fix a captured loop variable
parent
c1349971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
system_tob_test.go
op-e2e/system_tob_test.go
+2
-1
No files found.
op-e2e/system_tob_test.go
View file @
5dccbfdd
...
@@ -423,6 +423,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
...
@@ -423,6 +423,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
// There are 7 different fields we try modifying to cause a failure, plus one "good" test result we test.
// There are 7 different fields we try modifying to cause a failure, plus one "good" test result we test.
for
i
:=
0
;
i
<=
8
;
i
++
{
for
i
:=
0
;
i
<=
8
;
i
++
{
i
:=
i
// avoid loop var capture
t
.
Run
(
fmt
.
Sprintf
(
"withdrawal test#%d"
,
i
+
1
),
func
(
t
*
testing
.
T
)
{
t
.
Run
(
fmt
.
Sprintf
(
"withdrawal test#%d"
,
i
+
1
),
func
(
t
*
testing
.
T
)
{
t
.
Parallel
()
t
.
Parallel
()
// Create our system configuration, funding all accounts we created for L1/L2, and start it
// Create our system configuration, funding all accounts we created for L1/L2, and start it
...
@@ -527,7 +528,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
...
@@ -527,7 +528,7 @@ func TestMixedWithdrawalValidity(t *testing.T) {
transactor
.
ExpectedL2Nonce
=
transactor
.
ExpectedL2Nonce
+
1
transactor
.
ExpectedL2Nonce
=
transactor
.
ExpectedL2Nonce
+
1
// Wait for the finalization period, then we can finalize this withdrawal.
// Wait for the finalization period, then we can finalize this withdrawal.
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
2
0
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
ctx
,
cancel
=
context
.
WithTimeout
(
context
.
Background
(),
2
5
*
time
.
Duration
(
cfg
.
DeployConfig
.
L1BlockTime
)
*
time
.
Second
)
blockNumber
,
err
:=
withdrawals
.
WaitForFinalizationPeriod
(
ctx
,
l1Client
,
predeploys
.
DevOptimismPortalAddr
,
receipt
.
BlockNumber
)
blockNumber
,
err
:=
withdrawals
.
WaitForFinalizationPeriod
(
ctx
,
l1Client
,
predeploys
.
DevOptimismPortalAddr
,
receipt
.
BlockNumber
)
cancel
()
cancel
()
require
.
Nil
(
t
,
err
)
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