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
4cc0f7bf
Unverified
Commit
4cc0f7bf
authored
Sep 08, 2023
by
OptimismBot
Committed by
GitHub
Sep 08, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7145 from ethereum-optimism/aj/e2e-remove-dupe-tests
op-e2e: Remove redundant fault proof tests
parents
a3e6ceb6
3ce5c563
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
67 deletions
+0
-67
faultproof_test.go
op-e2e/faultproof_test.go
+0
-67
No files found.
op-e2e/faultproof_test.go
View file @
4cc0f7bf
...
...
@@ -13,43 +13,6 @@ import (
"github.com/stretchr/testify/require"
)
func
TestMultipleAlphabetGames
(
t
*
testing
.
T
)
{
InitParallel
(
t
)
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
t
.
Cleanup
(
sys
.
Close
)
gameFactory
:=
disputegame
.
NewFactoryHelper
(
t
,
ctx
,
sys
.
cfg
.
L1Deployments
,
l1Client
)
// Start a challenger with the correct alphabet trace
gameFactory
.
StartChallenger
(
ctx
,
sys
.
NodeEndpoint
(
"l1"
),
"TowerDefense"
,
challenger
.
WithAlphabet
(
"abcdefg"
),
challenger
.
WithPrivKey
(
sys
.
cfg
.
Secrets
.
Alice
),
challenger
.
WithAgreeProposedOutput
(
true
),
)
game1
:=
gameFactory
.
StartAlphabetGame
(
ctx
,
"abcxyz"
)
// Wait for the challenger to respond to the first game
game1
.
WaitForClaimCount
(
ctx
,
2
)
game2
:=
gameFactory
.
StartAlphabetGame
(
ctx
,
"zyxabc"
)
// Wait for the challenger to respond to the second game
game2
.
WaitForClaimCount
(
ctx
,
2
)
// Challenger should respond to new claims
game2
.
Attack
(
ctx
,
1
,
common
.
Hash
{
0xaa
})
game2
.
WaitForClaimCount
(
ctx
,
4
)
game1
.
Defend
(
ctx
,
1
,
common
.
Hash
{
0xaa
})
game1
.
WaitForClaimCount
(
ctx
,
4
)
gameDuration
:=
game1
.
GameDuration
(
ctx
)
sys
.
TimeTravelClock
.
AdvanceTime
(
gameDuration
)
require
.
NoError
(
t
,
wait
.
ForNextBlock
(
ctx
,
l1Client
))
game1
.
WaitForGameStatus
(
ctx
,
disputegame
.
StatusChallengerWins
)
game2
.
WaitForGameStatus
(
ctx
,
disputegame
.
StatusChallengerWins
)
}
func
TestMultipleCannonGames
(
t
*
testing
.
T
)
{
InitParallel
(
t
)
...
...
@@ -106,36 +69,6 @@ func TestMultipleCannonGames(t *testing.T) {
challenger
.
WaitForGameDataDeletion
(
ctx
,
game1
,
game2
)
}
func
TestResolveDisputeGame
(
t
*
testing
.
T
)
{
InitParallel
(
t
)
ctx
:=
context
.
Background
()
sys
,
l1Client
:=
startFaultDisputeSystem
(
t
)
t
.
Cleanup
(
sys
.
Close
)
disputeGameFactory
:=
disputegame
.
NewFactoryHelper
(
t
,
ctx
,
sys
.
cfg
.
L1Deployments
,
l1Client
)
game
:=
disputeGameFactory
.
StartAlphabetGame
(
ctx
,
"zyxwvut"
)
require
.
NotNil
(
t
,
game
)
gameDuration
:=
game
.
GameDuration
(
ctx
)
game
.
WaitForGameStatus
(
ctx
,
disputegame
.
StatusInProgress
)
game
.
StartChallenger
(
ctx
,
sys
.
NodeEndpoint
(
"l1"
),
"HonestAlice"
,
challenger
.
WithAgreeProposedOutput
(
true
),
challenger
.
WithAlphabet
(
"abcdefg"
),
challenger
.
WithPrivKey
(
sys
.
cfg
.
Secrets
.
Alice
),
)
game
.
WaitForClaimCount
(
ctx
,
2
)
sys
.
TimeTravelClock
.
AdvanceTime
(
gameDuration
)
require
.
NoError
(
t
,
wait
.
ForNextBlock
(
ctx
,
l1Client
))
// Challenger should resolve the game now that the clocks have expired.
game
.
WaitForGameStatus
(
ctx
,
disputegame
.
StatusChallengerWins
)
}
func
TestChallengerCompleteDisputeGame
(
t
*
testing
.
T
)
{
InitParallel
(
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