From 4ae49e8f694fede4cac850dc427f366a4ae66cdb Mon Sep 17 00:00:00 2001 From: nyagamunene Date: Mon, 27 Jan 2025 13:35:02 +0300 Subject: [PATCH] fix clients tests Signed-off-by: nyagamunene --- clients/postgres/clients_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clients/postgres/clients_test.go b/clients/postgres/clients_test.go index 8a6e46d0d5..7724e06c83 100644 --- a/clients/postgres/clients_test.go +++ b/clients/postgres/clients_test.go @@ -826,8 +826,9 @@ func TestRetrieveAll(t *testing.T) { Metadata: clients.Metadata{ "department": namegen.Generate(), }, - Status: clients.EnabledStatus, - CreatedAt: time.Now().UTC().Truncate(time.Microsecond), + Status: clients.EnabledStatus, + CreatedAt: time.Now().UTC().Truncate(time.Microsecond), + ConnectionTypes: []connections.ConnType{}, } if i%50 == 0 { client.Status = clients.DisabledStatus @@ -1240,6 +1241,8 @@ func TestRetrieveAll(t *testing.T) { assert.Equal(t, c.response.Limit, page.Limit) expected := stripClientDetails(c.response.Clients) got := stripClientDetails(page.Clients) + // fmt.Printf("\ngot is %+v\n\n", got) + // fmt.Printf("expected is %+v\n", expected) assert.ElementsMatch(t, expected, got) } })