Skip to content

Commit ecc9041

Browse files
Updating timelimit to avoid intermittent issue
1 parent d33e27d commit ecc9041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-complete/nodejs-documents-transaction-timelimit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Document transaction test', function() {
5252
*/
5353
var tid = 0;
5454
it('should commit the write document', function(done) {
55-
db.transactions.open({transactionName: "nodeTransaction", timeLimit: 1})
55+
db.transactions.open({transactionName: "nodeTransaction", timeLimit: 2})
5656
.result(function(response) {
5757
tid = response.txid;
5858
return db.documents.write({
@@ -70,7 +70,7 @@ it('should commit the write document', function(done) {
7070
.then(function(response) {
7171
//console.log(JSON.stringify(response, null, 2));
7272
response['transaction-status']['transaction-name'].should.equal('nodeTransaction');
73-
response['transaction-status']['time-limit'].should.equal('1');
73+
response['transaction-status']['time-limit'].should.equal('2');
7474
done();
7575
}, done);
7676
/*.catch(function(error) {

0 commit comments

Comments
 (0)