Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Nov 29, 2024
1 parent eff8e8d commit 94583b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ func TestNewRoute(t *testing.T) {
{
name: "parameters is nil",
setup: func() {
mockConfig.EXPECT().GetBool("http.drivers.fiber.prefork", false).Return(false).Once()
mockConfig.EXPECT().GetInt("http.drivers.fiber.body_limit", 4096).Return(4096).Once()
mockConfig.EXPECT().GetInt("http.drivers.fiber.header_limit", 4096).Return(4096).Once()
},
Expand All @@ -358,7 +357,6 @@ func TestNewRoute(t *testing.T) {
name: "template is instance",
parameters: map[string]any{"driver": "fiber"},
setup: func() {
mockConfig.EXPECT().GetBool("http.drivers.fiber.prefork", false).Return(false).Once()
mockConfig.EXPECT().GetInt("http.drivers.fiber.body_limit", 4096).Return(4096).Once()
mockConfig.EXPECT().GetInt("http.drivers.fiber.header_limit", 4096).Return(4096).Once()
mockConfig.EXPECT().Get("http.drivers.fiber.template").Return(template).Once()
Expand Down

0 comments on commit 94583b7

Please sign in to comment.