@@ -26,7 +26,7 @@ var dbAdmin = marklogic.createDatabaseClient(testconfig.restAdminConnection);
2626describe ( '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 ( ) ;
0 commit comments