Skip to content

Commit

Permalink
test: update middlewares stack unit tests due to timeout middleware i…
Browse files Browse the repository at this point in the history
…mplementation
  • Loading branch information
jeamon committed Nov 11, 2023
1 parent f4088b7 commit b25a19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests.middlewares_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
func TestMiddlewaresStacks(t *testing.T) {
api := NewAPIHandler(zap.NewNop(), nil, &Statistics{started: NewMockClocker().Now()}, NewMockClocker(), nil, nil)
pub, ops := api.MiddlewaresStacks()
assert.Equal(t, 7, len(*pub))
assert.Equal(t, 6, len(*ops))
assert.Equal(t, 8, len(*pub))
assert.Equal(t, 7, len(*ops))
}

// TestChain ensures each middleware in the stack is called as well the handler.
Expand Down

0 comments on commit b25a19f

Please sign in to comment.