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
54305b4e
Unverified
Commit
54305b4e
authored
Dec 25, 2023
by
Hamdi Allam
Committed by
GitHub
Dec 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flakiness (#8774)
parent
0fcbe0b2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
6 deletions
+33
-6
bridge_messages_e2e_test.go
indexer/e2e_tests/bridge_messages_e2e_test.go
+7
-1
bridge_transactions_e2e_test.go
indexer/e2e_tests/bridge_transactions_e2e_test.go
+6
-1
bridge_transfers_e2e_test.go
indexer/e2e_tests/bridge_transfers_e2e_test.go
+17
-2
setup.go
indexer/e2e_tests/setup.go
+3
-2
No files found.
indexer/e2e_tests/bridge_messages_e2e_test.go
View file @
54305b4e
...
@@ -13,6 +13,7 @@ import (
...
@@ -13,6 +13,7 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-node/withdrawals"
"github.com/ethereum-optimism/optimism/op-node/withdrawals"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum/go-ethereum/params"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/require"
...
@@ -114,7 +115,12 @@ func TestE2EBridgeL2CrossDomainMessenger(t *testing.T) {
...
@@ -114,7 +115,12 @@ func TestE2EBridgeL2CrossDomainMessenger(t *testing.T) {
l1Opts
.
Value
=
l2Opts
.
Value
l1Opts
.
Value
=
l2Opts
.
Value
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
require
.
NoError
(
t
,
err
)
depositInfo
,
err
:=
e2etest_utils
.
ParseDepositInfo
(
depositReceipt
)
require
.
NoError
(
t
,
err
)
depositL2TxHash
:=
types
.
NewTx
(
depositInfo
.
DepositTx
)
.
Hash
()
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L2Client
,
depositL2TxHash
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// (1) Send the Message
// (1) Send the Message
...
...
indexer/e2e_tests/bridge_transactions_e2e_test.go
View file @
54305b4e
...
@@ -94,7 +94,12 @@ func TestE2EBridgeTransactionsL2ToL1MessagePasserWithdrawal(t *testing.T) {
...
@@ -94,7 +94,12 @@ func TestE2EBridgeTransactionsL2ToL1MessagePasserWithdrawal(t *testing.T) {
l1Opts
.
Value
=
l2Opts
.
Value
l1Opts
.
Value
=
l2Opts
.
Value
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
require
.
NoError
(
t
,
err
)
depositInfo
,
err
:=
e2etest_utils
.
ParseDepositInfo
(
depositReceipt
)
require
.
NoError
(
t
,
err
)
depositL2TxHash
:=
types
.
NewTx
(
depositInfo
.
DepositTx
)
.
Hash
()
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L2Client
,
depositL2TxHash
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
withdrawTx
,
err
:=
l2ToL1MessagePasser
.
InitiateWithdrawal
(
l2Opts
,
aliceAddr
,
big
.
NewInt
(
100
_000
),
calldata
)
withdrawTx
,
err
:=
l2ToL1MessagePasser
.
InitiateWithdrawal
(
l2Opts
,
aliceAddr
,
big
.
NewInt
(
100
_000
),
calldata
)
...
...
indexer/e2e_tests/bridge_transfers_e2e_test.go
View file @
54305b4e
...
@@ -240,7 +240,12 @@ func TestE2EBridgeTransfersStandardBridgeETHWithdrawal(t *testing.T) {
...
@@ -240,7 +240,12 @@ func TestE2EBridgeTransfersStandardBridgeETHWithdrawal(t *testing.T) {
l1Opts
.
Value
=
l2Opts
.
Value
l1Opts
.
Value
=
l2Opts
.
Value
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
require
.
NoError
(
t
,
err
)
depositInfo
,
err
:=
e2etest_utils
.
ParseDepositInfo
(
depositReceipt
)
require
.
NoError
(
t
,
err
)
depositL2TxHash
:=
types
.
NewTx
(
depositInfo
.
DepositTx
)
.
Hash
()
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L2Client
,
depositL2TxHash
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// (1) Test Withdrawal Initiation
// (1) Test Withdrawal Initiation
...
@@ -324,7 +329,12 @@ func TestE2EBridgeTransfersL2ToL1MessagePasserETHReceive(t *testing.T) {
...
@@ -324,7 +329,12 @@ func TestE2EBridgeTransfersL2ToL1MessagePasserETHReceive(t *testing.T) {
l1Opts
.
Value
=
l2Opts
.
Value
l1Opts
.
Value
=
l2Opts
.
Value
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
depositTx
,
err
:=
optimismPortal
.
Receive
(
l1Opts
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
require
.
NoError
(
t
,
err
)
depositInfo
,
err
:=
e2etest_utils
.
ParseDepositInfo
(
depositReceipt
)
require
.
NoError
(
t
,
err
)
depositL2TxHash
:=
types
.
NewTx
(
depositInfo
.
DepositTx
)
.
Hash
()
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L2Client
,
depositL2TxHash
)
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
// (1) Test Withdrawal Initiation
// (1) Test Withdrawal Initiation
...
@@ -511,6 +521,11 @@ func TestClientBridgeFunctions(t *testing.T) {
...
@@ -511,6 +521,11 @@ func TestClientBridgeFunctions(t *testing.T) {
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
depositReceipt
,
err
:=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L1Client
,
depositTx
.
Hash
())
require
.
NoError
(
t
,
err
)
require
.
NoError
(
t
,
err
)
depositInfo
,
err
:=
e2etest_utils
.
ParseDepositInfo
(
depositReceipt
)
require
.
NoError
(
t
,
err
)
depositL2TxHash
:=
types
.
NewTx
(
depositInfo
.
DepositTx
)
.
Hash
()
_
,
err
=
wait
.
ForReceiptOK
(
context
.
Background
(),
testSuite
.
L2Client
,
depositL2TxHash
)
require
.
NoError
(
t
,
err
)
mintSum
=
new
(
big
.
Int
)
.
Add
(
mintSum
,
depositTx
.
Value
())
mintSum
=
new
(
big
.
Int
)
.
Add
(
mintSum
,
depositTx
.
Value
())
...
...
indexer/e2e_tests/setup.go
View file @
54305b4e
...
@@ -53,6 +53,9 @@ type E2ETestSuite struct {
...
@@ -53,6 +53,9 @@ type E2ETestSuite struct {
}
}
func
init
()
{
func
init
()
{
// Disable the global logger. Ideally we'd like to dump geth
// logs per-test but that's possible when running tests in
// parallel as the root logger is shared.
log
.
Root
()
.
SetHandler
(
log
.
DiscardHandler
())
log
.
Root
()
.
SetHandler
(
log
.
DiscardHandler
())
}
}
...
@@ -69,8 +72,6 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
...
@@ -69,8 +72,6 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
// Bump up the block times to try minimize resource
// Bump up the block times to try minimize resource
// contention when parallel devnets are running
// contention when parallel devnets are running
opCfg
:=
op_e2e
.
DefaultSystemConfig
(
t
)
opCfg
:=
op_e2e
.
DefaultSystemConfig
(
t
)
opCfg
.
DeployConfig
.
L1BlockTime
=
6
opCfg
.
DeployConfig
.
L2BlockTime
=
2
// Unless specified, omit logs emitted by the various components
// Unless specified, omit logs emitted by the various components
if
len
(
os
.
Getenv
(
"ENABLE_ROLLUP_LOGS"
))
==
0
{
if
len
(
os
.
Getenv
(
"ENABLE_ROLLUP_LOGS"
))
==
0
{
...
...
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