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
7d51ff39
Unverified
Commit
7d51ff39
authored
Oct 27, 2023
by
Adrian Sutton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-e2e: Move some tests back to executor 0.
parent
ff2b8879
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
faultproof_test.go
op-e2e/faultproof_test.go
+6
-6
No files found.
op-e2e/faultproof_test.go
View file @
7d51ff39
...
...
@@ -18,7 +18,7 @@ import (
)
func
TestMultipleCannonGames
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
1
))
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
0
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
@@ -78,7 +78,7 @@ func TestMultipleCannonGames(t *testing.T) {
}
func
TestMultipleGameTypes
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
1
))
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
0
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
@@ -370,7 +370,7 @@ func TestCannonDefendStep(t *testing.T) {
}
func
TestCannonProposedOutputRootInvalid
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
1
))
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
0
))
// honestStepsFail attempts to perform both an attack and defend step using the correct trace.
honestStepsFail
:=
func
(
ctx
context
.
Context
,
game
*
disputegame
.
CannonGameHelper
,
correctTrace
*
disputegame
.
HonestHelper
,
parentClaimIdx
int64
)
{
// Attack step should fail
...
...
@@ -421,7 +421,7 @@ func TestCannonProposedOutputRootInvalid(t *testing.T) {
for
_
,
test
:=
range
tests
{
test
:=
test
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UseExecutor
(
1
))
InitParallel
(
t
,
UseExecutor
(
0
))
ctx
:=
context
.
Background
()
sys
,
l1Client
,
game
,
correctTrace
:=
setupDisputeGameForInvalidOutputRoot
(
t
,
test
.
outputRoot
)
...
...
@@ -448,7 +448,7 @@ func TestCannonProposedOutputRootInvalid(t *testing.T) {
}
func
TestCannonPoisonedPostState
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
1
))
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
0
))
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
...
...
@@ -558,7 +558,7 @@ func setupDisputeGameForInvalidOutputRoot(t *testing.T, outputRoot common.Hash)
}
func
TestCannonChallengeWithCorrectRoot
(
t
*
testing
.
T
)
{
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
1
))
InitParallel
(
t
,
UsesCannon
,
UseExecutor
(
0
))
if
true
{
return
}
...
...
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