Commit f8de1ed1 authored by Adrian Sutton's avatar Adrian Sutton

op-e2e: Enable output_cannon tests

Fixes are all in place so they now pass. 🎉
parent 5fb16e2f
...@@ -63,20 +63,12 @@ func TestOutputCannonGame(t *testing.T) { ...@@ -63,20 +63,12 @@ func TestOutputCannonGame(t *testing.T) {
} }
func TestOutputCannon_PublishCannonRootClaim(t *testing.T) { func TestOutputCannon_PublishCannonRootClaim(t *testing.T) {
// TODO(client-pod#336) Reduce the number of cases and enable this tests
t.Skip("Contracts always require VM status to indicate the post-state output root is invalid")
op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor)) op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor))
tests := []struct { tests := []struct {
disputeL2BlockNumber uint64 disputeL2BlockNumber uint64
}{ }{
{1}, {7}, // Post-state output root is invalid
{2}, {8}, // Post-state output root is valid
{3},
{4},
{5},
{6},
{7},
{8},
} }
for _, test := range tests { for _, test := range tests {
test := test test := test
...@@ -99,8 +91,6 @@ func TestOutputCannon_PublishCannonRootClaim(t *testing.T) { ...@@ -99,8 +91,6 @@ func TestOutputCannon_PublishCannonRootClaim(t *testing.T) {
} }
func TestOutputCannonDisputeGame(t *testing.T) { func TestOutputCannonDisputeGame(t *testing.T) {
// TODO(client-pod#247): Fix and enable this.
t.Skip("Currently failing because of invalid pre-state")
op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor)) op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor))
tests := []struct { tests := []struct {
...@@ -150,8 +140,6 @@ func TestOutputCannonDisputeGame(t *testing.T) { ...@@ -150,8 +140,6 @@ func TestOutputCannonDisputeGame(t *testing.T) {
} }
func TestOutputCannonDefendStep(t *testing.T) { func TestOutputCannonDefendStep(t *testing.T) {
// TODO(client-pod#247): Fix and enable this.
t.Skip("Currently failing because of invalid pre-state")
op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor)) op_e2e.InitParallel(t, op_e2e.UsesCannon, op_e2e.UseExecutor(outputCannonTestExecutor))
ctx := context.Background() ctx := context.Background()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment