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
28fe81cf
Unverified
Commit
28fe81cf
authored
Jan 04, 2024
by
Adrian Sutton
Committed by
GitHub
Jan 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: Reallocate e2e tests to even out run time between the two executors. (#8809)
parent
104909cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
output_cannon_test.go
op-e2e/faultproofs/output_cannon_test.go
+8
-5
No files found.
op-e2e/faultproofs/output_cannon_test.go
View file @
28fe81cf
...
...
@@ -128,7 +128,8 @@ func TestOutputCannon_PublishCannonRootClaim(t *testing.T) {
}
func
TestOutputCannonDisputeGame
(
t
*
testing
.
T
)
{
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
outputCannonTestExecutor
))
executor
:=
uint64
(
1
)
// Different executor to the other tests to help balance things better
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
executor
))
tests
:=
[]
struct
{
name
string
...
...
@@ -141,7 +142,7 @@ func TestOutputCannonDisputeGame(t *testing.T) {
for
_
,
test
:=
range
tests
{
test
:=
test
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UseExecutor
(
outputCannonTestE
xecutor
))
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UseExecutor
(
e
xecutor
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
@@ -178,7 +179,8 @@ func TestOutputCannonDisputeGame(t *testing.T) {
}
func
TestOutputCannonDefendStep
(
t
*
testing
.
T
)
{
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
outputCannonTestExecutor
))
executor
:=
uint64
(
1
)
// Different executor to the other tests to help balance things better
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
executor
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
@@ -214,7 +216,8 @@ func TestOutputCannonDefendStep(t *testing.T) {
}
func
TestOutputCannonProposedOutputRootValid
(
t
*
testing
.
T
)
{
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
outputCannonTestExecutor
))
executor
:=
uint64
(
1
)
// Different executor to the other tests to help balance things better
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UsesCannon
,
op_e2e
.
UseExecutor
(
executor
))
// honestStepsFail attempts to perform both an attack and defend step using the correct trace.
honestStepsFail
:=
func
(
ctx
context
.
Context
,
game
*
disputegame
.
OutputCannonGameHelper
,
correctTrace
*
disputegame
.
OutputHonestHelper
,
parentClaimIdx
int64
)
{
// Attack step should fail
...
...
@@ -271,7 +274,7 @@ func TestOutputCannonProposedOutputRootValid(t *testing.T) {
for
_
,
test
:=
range
tests
{
test
:=
test
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UseExecutor
(
0
))
op_e2e
.
InitParallel
(
t
,
op_e2e
.
UseExecutor
(
executor
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
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