From 6fd9c17e0d8f1958a433bbc1575d1042db5e1143 Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Mon, 7 Oct 2024 16:30:28 +0100 Subject: [PATCH] style: lint --- server/server.go | 2 +- server/server_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/server.go b/server/server.go index f715dee7..ea8569f9 100644 --- a/server/server.go +++ b/server/server.go @@ -25,7 +25,7 @@ var ( const ( GetRoute = "/get/" - PutRoute = "/put" + PutRoute = "/put" Put = "put" CommitmentModeKey = "commitment_mode" diff --git a/server/server_test.go b/server/server_test.go index 2cb0a25c..27b9a30e 100644 --- a/server/server_test.go +++ b/server/server_test.go @@ -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")) @@ -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) @@ -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)