Skip to content

Commit a568730

Browse files
committed
Fix failing test
1 parent 40aaf62 commit a568730

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

server/lib/multipartRequest.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export default function(client, entity, opts = {}, fetchOptions = {} ) {
2121
let total = 0;
2222
let pageCount = 0;
2323

24+
console.log({options})
25+
2426
const getTotals = () =>
2527
getter({ ...options, include_totals: true, page: 0 })
2628
.then((response) => {

server/routes/connections.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import multipartRequest from '../lib/multipartRequest';
77
// finish loading connections and the "create user" button is never shown. If there are more connections than this
88
// in the tenant, we will return zero connections to the front end, and it will use a free text box for connection name
99
// in the create user dialogue.
10-
const CONNECTIONS_FETCH_LIMIT = 20000;
10+
const CONNECTIONS_FETCH_LIMIT = 200;
1111

1212
export default (scriptManager) => {
1313
const api = Router();
@@ -16,7 +16,7 @@ export default (scriptManager) => {
1616
req.auth0,
1717
'connections',
1818
{ strategy: 'auth0', fields: 'id,name,strategy,options' },
19-
{ limit: CONNECTIONS_FETCH_LIMIT, perPage: 100 }
19+
{ limit: CONNECTIONS_FETCH_LIMIT, perPage: 20 }
2020
)
2121
.then((connections) => {
2222
global.connections = connections.map(conn => ({ name: conn.name, id: conn.id }));

tests/client/utils/useDefaultFields.tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ describe('Client-Utils-useDefaultFields', () => {
321321
}];
322322
const target = [];
323323

324-
useDefaultFields.useConnectionsField(true, fields, []);
324+
useDefaultFields.useConnectionsField(true, fields, connection);
325325
expect(fields).to.deep.equal(target);
326326
});
327327

0 commit comments

Comments
 (0)