Don't panic with undefined middleware
This commit is contained in:
parent
a917115a85
commit
10acbb8d92
4 changed files with 25 additions and 8 deletions
|
@ -369,7 +369,6 @@ func TestBuilder_buildConstructor(t *testing.T) {
|
|||
t.Parallel()
|
||||
|
||||
constructor, err := middlewaresBuilder.buildConstructor(context.Background(), test.middlewareID)
|
||||
|
||||
require.NoError(t, err)
|
||||
|
||||
middleware, err2 := constructor(http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue