Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Sep 20, 2024
1 parent 7dec6cb commit 0752a6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions e2e/server_fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package e2e_test

import (
"fmt"
"testing"
"unicode"

"github.com/Layr-Labs/eigenda-proxy/client"
"github.com/Layr-Labs/eigenda-proxy/e2e"
op_plasma "github.com/ethereum-optimism/optimism/op-plasma"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
"unicode"
)

func addUnicodeTestCases(f *testing.F) {
Expand Down Expand Up @@ -38,7 +39,7 @@ func FuzzProxyClientServerIntegration(f *testing.F) {
daClient := client.New(cfg)

// Add each printable Unicode character as a seed including ascii
f.Fuzz(func(t *testing.T, seed string, data []byte) {
f.Fuzz(func(t *testing.T, _ string, data []byte) {
_, err := daClient.SetData(ts.Ctx, data)
require.NoError(t, err)
})
Expand All @@ -61,7 +62,7 @@ func FuzzOpClientKeccak256MalformedInputs(f *testing.F) {

// Fuzz the SetInput function with random data
// seed and data are expected. `seed` value is seed: {i} and data is the one with the random string
f.Fuzz(func(t *testing.T, seed string, data []byte) {
f.Fuzz(func(t *testing.T, _ string, data []byte) {

_, err := daClientPcFalse.SetInput(ts.Ctx, data)
// should fail with proper error message as is now, and cannot contain panics or nils
Expand Down
5 changes: 3 additions & 2 deletions e2e/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package e2e
import (
"context"
"fmt"
"os"
"time"

"github.com/Layr-Labs/eigenda-proxy/metrics"
"github.com/Layr-Labs/eigenda-proxy/server"
"github.com/Layr-Labs/eigenda-proxy/store"
Expand All @@ -13,8 +16,6 @@ import (
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials"
"golang.org/x/exp/rand"
"os"
"time"

"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 0752a6b

Please sign in to comment.