From ea06016b7dcc1a2bbb98a698fbd581d17fdd4307 Mon Sep 17 00:00:00 2001 From: Paul Nicolas Date: Fri, 22 Dec 2023 00:49:39 +0100 Subject: [PATCH] fix tests --- components/payments/cmd/api/internal/api/pools_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/payments/cmd/api/internal/api/pools_test.go b/components/payments/cmd/api/internal/api/pools_test.go index 8db62e1bd3..9519e2e554 100644 --- a/components/payments/cmd/api/internal/api/pools_test.go +++ b/components/payments/cmd/api/internal/api/pools_test.go @@ -55,11 +55,13 @@ func TestCreatePool(t *testing.T) { }, }, { - name: "no accounts, but should still pass", + name: "no accounts", req: &service.CreatePoolRequest{ Name: "test", AccountIDs: []string{}, }, + expectedStatusCode: http.StatusBadRequest, + expectedErrorCode: ErrValidation, }, { name: "missing name",