Skip to content

Commit

Permalink
feat: OP Keccak commitment support - update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Jul 19, 2024
1 parent 8611410 commit 5c215b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions e2e/optimism_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 1 addition & 6 deletions e2e/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))

Expand Down Expand Up @@ -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...")
Expand Down

0 comments on commit 5c215b4

Please sign in to comment.