Skip to content

Commit

Permalink
fix clients tests
Browse files Browse the repository at this point in the history
Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene committed Jan 27, 2025
1 parent f8e50fb commit 4ae49e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clients/postgres/clients_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 4ae49e8

Please sign in to comment.