Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9007b8e commit 72b0862Copy full SHA for 72b0862
coderd/users_test.go
@@ -1431,15 +1431,15 @@ func TestGetUsersPagination(t *testing.T) {
1431
require.Equal(t, res.Count, 2)
1432
1433
// if offset is higher than the count postgres returns an empty array
1434
- // and not an ErrNoRows error. This also means the count must be 0.
+ // and not an ErrNoRows error.
1435
res, err = client.Users(ctx, codersdk.UsersRequest{
1436
Pagination: codersdk.Pagination{
1437
Offset: 3,
1438
},
1439
})
1440
require.NoError(t, err)
1441
require.Len(t, res.Users, 0)
1442
- require.Equal(t, res.Count, 0)
+ require.Equal(t, res.Count, -1)
1443
}
1444
1445
func TestPostTokens(t *testing.T) {
0 commit comments