From 5c215b4e73f0ee373d8ddde3f34c23f72180b13e Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Thu, 18 Jul 2024 23:04:32 -0400 Subject: [PATCH] feat: OP Keccak commitment support - update e2e tests --- e2e/optimism_test.go | 4 ++-- e2e/server_test.go | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/e2e/optimism_test.go b/e2e/optimism_test.go index 836e2344..a8f20e0e 100644 --- a/e2e/optimism_test.go +++ b/e2e/optimism_test.go @@ -122,7 +122,7 @@ func TestOptimismKeccak256Commitment(gt *testing.T) { gt.Skip("Skipping test as INTEGRATION or TESTNET env var not set") } - proxyTS, close := e2e.CreateTestSuite(gt, true, true) + proxyTS, close := e2e.CreateTestSuite(gt, useMemory(), true) defer close() t := actions.NewDefaultTesting(gt) @@ -176,7 +176,7 @@ func TestOptimismAltDACommitment(gt *testing.T) { gt.Skip("Skipping test as INTEGRATION or TESTNET env var not set") } - proxyTS, close := e2e.CreateTestSuite(gt, true, false) + proxyTS, close := e2e.CreateTestSuite(gt, useMemory(), false) defer close() t := actions.NewDefaultTesting(gt) diff --git a/e2e/server_test.go b/e2e/server_test.go index 3e25a465..ae4c3f51 100644 --- a/e2e/server_test.go +++ b/e2e/server_test.go @@ -25,16 +25,12 @@ func TestOptimismClientWithS3Backend(t *testing.T) { defer kill() daClient := op_plasma.NewDAClient(ts.Address(), false, true) - t.Log("Waiting for client to establish connection with plasma server...") - // wait for the server to come online after starting - // 1 - write arbitrary data to EigenDA testPreimage := []byte(e2e.RandString(100)) commit, err := daClient.SetInput(ts.Ctx, testPreimage) require.NoError(t, err) - // 2 - fetch data from EigenDA for generated commitment key preimage, err := daClient.GetInput(ts.Ctx, commit) require.NoError(t, err) require.Equal(t, testPreimage, preimage) @@ -53,7 +49,6 @@ func TestOptimismClientWithEigenDABackend(t *testing.T) { defer kill() daClient := op_plasma.NewDAClient(ts.Address(), false, false) - t.Log("Waiting for client to establish connection with plasma server...") testPreimage := []byte(e2e.RandString(100)) @@ -81,7 +76,7 @@ func TestProxyClient(t *testing.T) { URL: ts.Address(), } daClient := client.New(cfg) - t.Log("Waiting for client to establish connection with plasma server...") + testPreimage := []byte(e2e.RandString(100)) t.Log("Setting input data on proxy server...")