Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Oct 7, 2024
1 parent b69b153 commit 6fd9c17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (

const (
GetRoute = "/get/"
PutRoute = "/put"
PutRoute = "/put"
Put = "put"

CommitmentModeKey = "commitment_mode"
Expand Down
6 changes: 3 additions & 3 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func TestPutHandler(t *testing.T) {
},
{
name: "Failure OP Mode Alt-DA - InternalServerError",
url: "/put",
url: "/put",
body: []byte("some data that will trigger an internal error"),
mockBehavior: func() {
mockRouter.EXPECT().Put(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil, fmt.Errorf("internal error"))
Expand All @@ -224,7 +224,7 @@ func TestPutHandler(t *testing.T) {
},
{
name: "Success OP Mode Alt-DA",
url: "/put",
url: "/put",
body: []byte("some data that will successfully be written to EigenDA"),
mockBehavior: func() {
mockRouter.EXPECT().Put(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return([]byte(testCommitStr), nil)
Expand All @@ -248,7 +248,7 @@ func TestPutHandler(t *testing.T) {
},
{
name: "Success Simple Commitment Mode",
url: "/put?commitment_mode=simple",
url: "/put?commitment_mode=simple",
body: []byte("some data that will successfully be written to EigenDA"),
mockBehavior: func() {
mockRouter.EXPECT().Put(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return([]byte(testCommitStr), nil)
Expand Down

0 comments on commit 6fd9c17

Please sign in to comment.