From b25a19f1beca12476ab31dd3fc2871f0c23420b6 Mon Sep 17 00:00:00 2001 From: Jerome Amon Date: Sat, 11 Nov 2023 02:26:09 +0100 Subject: [PATCH] test: update middlewares stack unit tests due to timeout middleware implementation --- tests.middlewares_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.middlewares_test.go b/tests.middlewares_test.go index 4de8ff9..aa329aa 100644 --- a/tests.middlewares_test.go +++ b/tests.middlewares_test.go @@ -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.