Skip to content

Commit

Permalink
Anvesh | Made changes to the failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshthakur committed Sep 9, 2024
1 parent cb130e3 commit 4e11ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/docs/handleDocUpload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func TestHandleDocUpload_FileExist(t *testing.T) {
cc.Request.Header.Add("Content-Type", writer.FormDataContentType())

// second handling
docHandler.HandleDocUpload(c)
docHandler.HandleDocUpload(cc)

// second statement
require.Equal(t, http.StatusConflict, ww.Result().StatusCode)
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/image/handleImageUpload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func TestHandleImageUpload_FileExist(t *testing.T) {
cc.Request.Header.Add("Content-Type", writer.FormDataContentType())

// second handling
imageHandler.HandleImageUpload(c)
imageHandler.HandleImageUpload(cc)

// second statement
require.Equal(t, http.StatusConflict, ww.Result().StatusCode)
Expand Down

0 comments on commit 4e11ab7

Please sign in to comment.