Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change put route put/ -> put #168

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading