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
aed9ee1d
Unverified
Commit
aed9ee1d
authored
Jun 06, 2024
by
Adrian Sutton
Committed by
GitHub
Jun 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: Fix flake caused by reusing a single system config across multiple tests (#10754)
parent
656a4bd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
check_scripts_test.go
op-e2e/check_scripts_test.go
+11
-9
No files found.
op-e2e/check_scripts_test.go
View file @
aed9ee1d
...
...
@@ -16,16 +16,8 @@ import (
// TestCheckFjordScript ensures the op-chain-ops/cmd/check-fjord script runs successfully
// against a test chain with the fjord hardfork activated/unactivated
func
TestCheckFjordScript
(
t
*
testing
.
T
)
{
log
:=
testlog
.
Logger
(
t
,
log
.
LevelInfo
)
cfg
:=
DefaultSystemConfig
(
t
)
InitParallel
(
t
)
genesisActivation
:=
hexutil
.
Uint64
(
0
)
cfg
.
DeployConfig
.
L1CancunTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisRegolithTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisCanyonTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisDeltaTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisEcotoneTimeOffset
=
&
genesisActivation
tests
:=
[]
struct
{
name
string
fjordActivation
*
hexutil
.
Uint64
...
...
@@ -46,6 +38,16 @@ func TestCheckFjordScript(t *testing.T) {
for
_
,
tt
:=
range
tests
{
t
.
Run
(
tt
.
name
,
func
(
t
*
testing
.
T
)
{
InitParallel
(
t
)
log
:=
testlog
.
Logger
(
t
,
log
.
LevelInfo
)
cfg
:=
DefaultSystemConfig
(
t
)
cfg
.
DeployConfig
.
L1CancunTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisRegolithTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisCanyonTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisDeltaTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisEcotoneTimeOffset
=
&
genesisActivation
cfg
.
DeployConfig
.
L2GenesisFjordTimeOffset
=
tt
.
fjordActivation
sys
,
err
:=
cfg
.
Start
(
t
)
...
...
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