mirror of
https://github.com/DeBrosOfficial/network.git
synced 2026-01-30 06:53:03 +00:00
Fixed failing unit test on handlers
This commit is contained in:
parent
42c0c61d19
commit
e706ed3397
@ -398,7 +398,7 @@ func TestListHandler_AllDeployments(t *testing.T) {
|
|||||||
portAllocator: portAlloc,
|
portAllocator: portAlloc,
|
||||||
logger: zap.NewNop(),
|
logger: zap.NewNop(),
|
||||||
}
|
}
|
||||||
handler := NewListHandler(service, zap.NewNop())
|
handler := NewListHandler(service, nil, nil, zap.NewNop(), "")
|
||||||
|
|
||||||
req := httptest.NewRequest("GET", "/v1/deployments/list", nil)
|
req := httptest.NewRequest("GET", "/v1/deployments/list", nil)
|
||||||
ctx := context.WithValue(req.Context(), ctxkeys.NamespaceOverride, "test-namespace")
|
ctx := context.WithValue(req.Context(), ctxkeys.NamespaceOverride, "test-namespace")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user