Skip to content

Commit f801428

Browse files
author
Aries Yuwono
committed
increase timeout
1 parent 8b21537 commit f801428

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

test-complete/nodejs-documents-query-sort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var dbAdmin = marklogic.createDatabaseClient(testconfig.restAdminConnection);
2626

2727
describe('document query sort test', function(){
2828
before(function(done){
29-
this.timeout(5000);
29+
this.timeout(10000);
3030
// NOTE: must create a string range index on rangeKey1 and rangeKey2
3131
dbWriter.documents.write({
3232
uri: '/test/query/sort/doc1.json',

test-complete/nodejs-documents-removeAll.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('Document remove all test', function(){
102102
});
103103

104104
/*it('should remove the collection and directory', function(done){
105-
this.timeout(5000);
105+
this.timeout(10000);
106106
dbWriter.documents.removeAll({collection:'matchList', directory:'/test/query/matchDir'}).
107107
result(function(result) {
108108
return db.documents.probe('/test/query/matchList/doc5.json').result();
@@ -114,7 +114,7 @@ describe('Document remove all test', function(){
114114
});*/
115115

116116
it('should remove the collection', function(done){
117-
this.timeout(5000);
117+
this.timeout(10000);
118118
dbWriter.documents.removeAll({collection:'matchList'}).
119119
result(function(result) {
120120
return db.documents.probe('/test/query/matchList/doc5.json').result();
@@ -126,7 +126,7 @@ describe('Document remove all test', function(){
126126
});
127127

128128
it('should remove the directory', function(done){
129-
this.timeout(5000);
129+
this.timeout(10000);
130130
dbWriter.documents.removeAll({directory:'/test/query/matchDir'}).
131131
result(function(result) {
132132
return db.documents.probe('/test/query/matchDir/doc4.json').result();

test-complete/nodejs-documents-resources.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('when executing resource services', function(){
5050
}, done);
5151
});
5252
it('should get one document with transaction', function(done){
53-
this.timeout(5000);
53+
this.timeout(10000);
5454
var tid = null;
5555
//console.log('Started');
5656
db.transactions.open().result().

test-complete/nodejs-documents-transaction.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var dbAdmin = marklogic.createDatabaseClient(testconfig.restAdminConnection);
2626
describe('Document transaction test', function() {
2727

2828
it('should commit the write document', function(done) {
29-
this.timeout(5000);
29+
this.timeout(10000);
3030
var tid = null;
3131
db.transactions.open().result().
3232
then(function(response) {
@@ -45,7 +45,7 @@ describe('Document transaction test', function() {
4545
});
4646

4747
it('should read the commited document', function(done) {
48-
this.timeout(5000);
48+
this.timeout(10000);
4949
db.documents.read({uris:'/test/transaction/doc1.json'}).result().
5050
then(function(documents) {
5151
var document = documents[0];
@@ -62,7 +62,7 @@ describe('Document transaction test', function() {
6262
});
6363

6464
/*it('should rollback the write document', function(done) {
65-
this.timeout(5000);
65+
this.timeout(10000);
6666
var tid = null;
6767
db.transactions.open().result().
6868
then(function(response) {
@@ -85,7 +85,7 @@ describe('Document transaction test', function() {
8585
});*/
8686

8787
it('should rollback the write document', function(done) {
88-
this.timeout(5000);
88+
this.timeout(10000);
8989
var tid = null;
9090
db.transactions.open().result().
9191
then(function(response) {
@@ -107,7 +107,7 @@ describe('Document transaction test', function() {
107107
});
108108
});
109109
/*it('should be able to read the rolled back document', function(done) {
110-
this.timeout(5000);
110+
this.timeout(10000);
111111
console.log(tid);
112112
db.documents.read({uris:'/test/transaction/doc2.json'}).
113113
result(function(response) {
@@ -119,7 +119,7 @@ describe('Document transaction test', function() {
119119
});*/
120120

121121
it('should rollback the overwritten document', function(done) {
122-
this.timeout(5000);
122+
this.timeout(10000);
123123
var tid = null;
124124
db.transactions.open().result().
125125
then(function(response) {
@@ -148,7 +148,7 @@ describe('Document transaction test', function() {
148148
});
149149

150150
it('should be able to read the original document', function(done) {
151-
this.timeout(5000);
151+
this.timeout(10000);
152152
db.documents.read({uris:'/test/transaction/doc3.json'}).
153153
result(function(response) {
154154
//console.log(response);
@@ -164,7 +164,7 @@ describe('Document transaction test', function() {
164164

165165

166166
it('should remove all documents', function(done) {
167-
this.timeout(5000);
167+
this.timeout(10000);
168168
dbAdmin.documents.removeAll({all: true}).
169169
result(function(response) {
170170
done();

test-complete/nodejs-documents-values.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ describe('Document tuples test', function(){
108108
});
109109

110110
it('should do values on score', function(done){
111-
this.timeout(5000);
111+
this.timeout(10000);
112112
db.values.read(
113113
t.fromIndexes(
114114
t.range('score', 'xs:double')
@@ -125,7 +125,7 @@ describe('Document tuples test', function(){
125125
}, done);
126126
});
127127
it('should do values on path', function(done){
128-
this.timeout(5000);
128+
this.timeout(10000);
129129
db.values.read(
130130
t.fromIndexes(t.pathIndex('price/amt'))
131131
).result(function (values) {
@@ -146,7 +146,7 @@ describe('Document tuples test', function(){
146146
/*
147147
//Issue with Index settings working on it
148148
it('should do values on field', function(done){
149-
this.timeout(5000);
149+
this.timeout(10000);
150150
db.values.read(
151151
t.fromIndexes(t.field('New'))
152152
).result(function (result) {
@@ -158,7 +158,7 @@ describe('Document tuples test', function(){
158158
}); */
159159

160160
it('should do sum aggregates', function(done){
161-
this.timeout(5000);
161+
this.timeout(10000);
162162
db.values.read(
163163
t.fromIndexes(
164164
t.range('score', 'xs:double')
@@ -176,7 +176,7 @@ describe('Document tuples test', function(){
176176
});
177177

178178
it('should do correlation and covariance aggregates', function(done){
179-
this.timeout(5000);
179+
this.timeout(10000);
180180
db.values.read(
181181
t.fromIndexes(
182182
t.range('rate', 'xs:int'),
@@ -197,7 +197,7 @@ describe('Document tuples test', function(){
197197
});
198198

199199
it('should do max, min, sum, average aggregates', function(done){
200-
this.timeout(5000);
200+
this.timeout(10000);
201201
db.values.read(
202202
t.fromIndexes(
203203
t.range(t.property('popularity'), t.datatype('int'))

0 commit comments

Comments
 (0)