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
96a92df3
Commit
96a92df3
authored
May 04, 2023
by
inphi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: wait for observed seq reorg in TestMissingBatchE2E
parent
7fd1e5d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
system_test.go
op-e2e/system_test.go
+5
-2
No files found.
op-e2e/system_test.go
View file @
96a92df3
...
...
@@ -393,6 +393,9 @@ func TestMissingBatchE2E(t *testing.T) {
l2Seq
:=
sys
.
Clients
[
"sequencer"
]
l2Verif
:=
sys
.
Clients
[
"verifier"
]
seqRollupRPCClient
,
err
:=
rpc
.
DialContext
(
context
.
Background
(),
sys
.
RollupNodes
[
"sequencer"
]
.
HTTPEndpoint
())
require
.
Nil
(
t
,
err
)
seqRollupClient
:=
sources
.
NewRollupClient
(
client
.
NewBaseRPCClient
(
seqRollupRPCClient
))
// Transactor Account
ethPrivKey
:=
cfg
.
Secrets
.
Alice
...
...
@@ -414,8 +417,8 @@ func TestMissingBatchE2E(t *testing.T) {
require
.
Equal
(
t
,
ethereum
.
NotFound
,
err
,
"Found transaction in verifier when it should not have been included"
)
// Wait a short time for the L2 reorg to occur on the sequencer as well.
// The proper thing to do is to wait until the sequencer marks this block safe.
<-
time
.
After
(
2
*
time
.
Second
)
err
=
waitForSafeHead
(
ctx
,
receipt
.
BlockNumber
.
Uint64
(),
seqRollupClient
)
require
.
Nil
(
t
,
err
,
"timeout waiting for L2 reorg on sequencer safe head"
)
// Assert that the reconciliation process did an L2 reorg on the sequencer to remove the invalid block
ctx2
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
)
...
...
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