Skip to content

Commit 0b035a1

Browse files
author
Aschen
committed
Fix scroll duration
1 parent 23d9fc6 commit 0b035a1

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

doc/7/controllers/collection/search-specifications/snippets/search-specifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ try {
1010
const options = {
1111
size: 50,
1212
offset: 0,
13-
scroll: '10m'
13+
scroll: '10s'
1414
};
1515

1616
const searchResult = await kuzzle.collection.searchSpecifications(body, options);

doc/7/core-classes/search-result/next/snippets/scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ try {
1313
'nyc-open-data',
1414
'yellow-taxi',
1515
{ query: { match: { category: 'suv' } } },
16-
{ scroll: '1m', size: 10 });
16+
{ scroll: '10s', size: 10 });
1717

1818
// Fetch the matched items by advancing through the result pages
1919
const matched = [];

test/controllers/document.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe('Document Controller', () => {
412412
};
413413
kuzzle.query.resolves({result});
414414

415-
return kuzzle.document.search('index', 'collection', {foo: 'bar'}, {from: 1, size: 2, scroll: '1m'})
415+
return kuzzle.document.search('index', 'collection', {foo: 'bar'}, {from: 1, size: 2, scroll: '10s'})
416416
.then(res => {
417417
should(kuzzle.query)
418418
.be.calledOnce()
@@ -424,7 +424,7 @@ describe('Document Controller', () => {
424424
body: {foo: 'bar'},
425425
from: 1,
426426
size: 2,
427-
scroll: '1m'
427+
scroll: '10s'
428428
}, {});
429429

430430
should(res).be.an.instanceOf(DocumentSearchResult);

test/controllers/searchResult/document.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('DocumentSearchResult', () => {
130130
.be.calledWith({
131131
controller: 'document',
132132
action: 'scroll',
133-
scroll: '1m',
133+
scroll: '10s',
134134
scrollId: 'scroll-id'
135135
}, options);
136136
should(nextSearchResult).not.be.equal(searchResult);

test/controllers/searchResult/profile.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ describe('ProfileSearchResult', () => {
133133
.be.calledWith({
134134
controller: 'security',
135135
action: 'scrollProfiles',
136-
scroll: '1m',
136+
scroll: '10s',
137137
scrollId: 'scroll-id'
138138
}, options);
139139
should(nextSearchResult).not.be.equal(searchResult);

test/controllers/searchResult/specifications.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe('SpecificationsSearchResult', () => {
123123
.be.calledWith({
124124
controller: 'collection',
125125
action: 'scrollSpecifications',
126-
scroll: '1m',
126+
scroll: '10s',
127127
scrollId: 'scroll-id'
128128
}, options);
129129
should(nextSearchResult).not.be.equal(searchResult);

test/controllers/searchResult/user.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ describe('UserSearchResult', () => {
135135
.be.calledWith({
136136
controller: 'security',
137137
action: 'scrollUsers',
138-
scroll: '1m',
138+
scroll: '10s',
139139
scrollId: 'scroll-id'
140140
}, options);
141141
should(nextSearchResult).not.be.equal(searchResult);

test/controllers/security.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ describe('Security Controller', () => {
985985
};
986986
kuzzle.query.resolves({result});
987987

988-
return kuzzle.security.searchProfiles({roles: ['foo', 'bar']}, {from: 1, size: 2, scroll: '1m'})
988+
return kuzzle.security.searchProfiles({roles: ['foo', 'bar']}, {from: 1, size: 2, scroll: '10s'})
989989
.then(res => {
990990
should(kuzzle.query)
991991
.be.calledOnce()
@@ -995,7 +995,7 @@ describe('Security Controller', () => {
995995
body: {roles: ['foo', 'bar']},
996996
from: 1,
997997
size: 2,
998-
scroll: '1m'
998+
scroll: '10s'
999999
}, {});
10001000

10011001
should(res).be.an.instanceOf(ProfileSearchResult);
@@ -1113,7 +1113,7 @@ describe('Security Controller', () => {
11131113
};
11141114
kuzzle.query.resolves({result});
11151115

1116-
return kuzzle.security.searchUsers({foo: 'bar'}, {from: 1, size: 2, scroll: '1m'})
1116+
return kuzzle.security.searchUsers({foo: 'bar'}, {from: 1, size: 2, scroll: '10s'})
11171117
.then(res => {
11181118
should(kuzzle.query)
11191119
.be.calledOnce()
@@ -1123,7 +1123,7 @@ describe('Security Controller', () => {
11231123
body: {foo: 'bar'},
11241124
from: 1,
11251125
size: 2,
1126-
scroll: '1m'
1126+
scroll: '10s'
11271127
}, {});
11281128

11291129
should(res).be.an.instanceOf(UserSearchResult);

0 commit comments

Comments
 (0)