Skip to content

Commit d9beb96

Browse files
committed
test: Set per-test expected duration
1 parent b39b98f commit d9beb96

26 files changed

+183
-1
lines changed

test/functional/CommandCallFunctional.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('CommandCall Functional Tests', function () {
2727
});
2828

2929
describe('CL command tests', function () {
30+
this.slow(1840);
3031
it('calls CL command', function (done) {
3132
const connection = new Connection(config);
3233
connection.add(new CommandCall({ command: 'RTVJOBA USRLIBL(?) SYSLIBL(?)', type: 'cl' }));
@@ -42,6 +43,7 @@ describe('CommandCall Functional Tests', function () {
4243
});
4344

4445
describe('SH command tests', function () {
46+
this.slow(2985);
4547
it('calls PASE shell command', function (done) {
4648
const connection = new Connection(config);
4749
connection.add(new CommandCall({ command: 'system -i wrksyssts', type: 'sh' }));
@@ -59,6 +61,7 @@ describe('CommandCall Functional Tests', function () {
5961
});
6062

6163
describe('QSH command tests', function () {
64+
this.slow(3300);
6265
it('calls QSH command', function (done) {
6366
const connection = new Connection(config);
6467
connection.add(new CommandCall({ command: 'system wrksyssts', type: 'qsh' }));

test/functional/ProgramCallFunctional.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('ProgramCall Functional Tests', function () {
2727
});
2828

2929
describe('Test ProgramCall()', function () {
30+
this.slow(1400);
3031
it('calls QWCRSVAL program checks if it ran successfully', function (done) {
3132
const connection = new Connection(config);
3233

test/functional/deprecated/commandsFunctional.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () {
5050
});
5151

5252
describe('iCmd()', function () {
53+
this.slow(562);
5354
it('calls CL command', function (done) {
5455
const connection = new iConn(database, username, password, restOptions);
5556
connection.add(iCmd('RTVJOBA USRLIBL(?) SYSLIBL(?)'));
@@ -64,6 +65,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () {
6465
});
6566

6667
describe('iSh()', function () {
68+
this.slow(1725);
6769
it('calls PASE shell command', function (done) {
6870
const connection = new iConn(database, username, password, restOptions);
6971
connection.add(iSh('system -i wrksyssts'));
@@ -80,6 +82,7 @@ describe('iSh, iCmd, iQsh, Functional Tests', function () {
8082
});
8183

8284
describe('iQsh()', function () {
85+
this.slow(3122);
8386
it('calls QSH command', function (done) {
8487
const connection = new iConn(database, username, password, restOptions);
8588
connection.add(iQsh('system wrksyssts'));

test/functional/deprecated/iDataQueueFunctional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ describe('iDataQueue Functional Tests', function () {
5454
});
5555

5656
describe('constructor', function () {
57+
this.slow(1);
5758
it('creates and returns an instance of iDataQueue', function () {
5859
const connection = new iConn(database, config.user, password);
5960

@@ -63,6 +64,7 @@ describe('iDataQueue Functional Tests', function () {
6364
});
6465

6566
describe('sendToDataQueue', function () {
67+
this.slow(348);
6668
it('sends data to specified DQ', function (done) {
6769
const connection = new iConn(database, username, password, restOptions);
6870

@@ -76,6 +78,7 @@ describe('iDataQueue Functional Tests', function () {
7678
});
7779

7880
describe('receiveFromDataQueue', function () {
81+
this.slow(356);
7982
it('receives data from specfied DQ', function (done) {
8083
const connection = new iConn(database, username, password, restOptions);
8184

@@ -89,6 +92,7 @@ describe('iDataQueue Functional Tests', function () {
8992
});
9093

9194
describe('clearDataQueue', function () {
95+
this.slow(360);
9296
it('clears the specifed DQ', function (done) {
9397
const connection = new iConn(database, username, password, restOptions);
9498

test/functional/deprecated/iNetworkFunctional.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('iNetwork Functional Tests', function () {
4747
});
4848

4949
describe('constructor', function () {
50+
this.slow(1);
5051
it('creates and returns an instance of iNetwork', function () {
5152
const connection = new iConn(database, config.user, password);
5253

@@ -57,6 +58,7 @@ describe('iNetwork Functional Tests', function () {
5758
});
5859

5960
describe('getTCPIPAttr', function () {
61+
this.slow(407);
6062
it('retrieves TCP/IP Attributes', function (done) {
6163
const connection = new iConn(database, username, password, restOptions);
6264

@@ -99,6 +101,7 @@ describe('iNetwork Functional Tests', function () {
99101
});
100102

101103
describe('getNetInterfaceData', function () {
104+
this.slow(405);
102105
it('retrieves IPv4 network interface info', function (done) {
103106
const connection = new iConn(database, username, password, restOptions);
104107

test/functional/deprecated/iObjFunctional.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('iObj Functional Tests', function () {
4747
});
4848

4949
describe('constructor', function () {
50+
this.slow(1);
5051
it('creates and returns an instance of iObj', function () {
5152
const connection = new iConn(database, config.user, password);
5253

@@ -57,6 +58,7 @@ describe('iObj Functional Tests', function () {
5758
});
5859

5960
describe('retrUsrAuth', function () {
61+
this.slow(326);
6062
it(`returns uses's authority for an object using ${config.transport} tranport`, function (done) {
6163
const connection = new iConn(database, username, password, restOptions);
6264

@@ -101,6 +103,7 @@ describe('iObj Functional Tests', function () {
101103
});
102104

103105
describe('rtrCmdInfo', function () {
106+
this.slow(320);
104107
it('returns command info', function (done) {
105108
const connection = new iConn(database, username, password, restOptions);
106109

@@ -153,6 +156,7 @@ describe('iObj Functional Tests', function () {
153156
});
154157

155158
describe('retrPgmInfo', function () {
159+
this.slow(357);
156160
it('returns program info', function (done) {
157161
const connection = new iConn(database, username, password, restOptions);
158162

@@ -227,6 +231,7 @@ describe('iObj Functional Tests', function () {
227231
});
228232

229233
describe('retrSrvPgmInfo', function () {
234+
this.slow(343);
230235
it('returns service program info', function (done) {
231236
const connection = new iConn(database, username, password, restOptions);
232237

@@ -282,6 +287,7 @@ describe('iObj Functional Tests', function () {
282287
});
283288

284289
describe('retrUserInfo', function () {
290+
this.slow(356);
285291
it('returns specified user profile info', function (done) {
286292
const connection = new iConn(database, username, password, restOptions);
287293

@@ -308,6 +314,7 @@ describe('iObj Functional Tests', function () {
308314
});
309315

310316
describe('retrUsrAuthToObj', function () {
317+
this.slow(324);
311318
it(`retrieves info for users who are authorized to an object using ${config.transport} transpsort`, function (done) {
312319
const connection = new iConn(database, username, password, restOptions);
313320

@@ -335,6 +342,7 @@ describe('iObj Functional Tests', function () {
335342
});
336343

337344
describe('addToLibraryList', function () {
345+
this.slow(317);
338346
it('appends lib to user\'s lib list', function (done) {
339347
const connection = new iConn(database, username, password, restOptions);
340348

test/functional/deprecated/iPgmFunctional.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('iPgm Functional Tests', function () {
4848
});
4949

5050
describe('Test iPgm()', function () {
51+
this.slow(335);
5152
it('calls QWCRSVAL program checks if it ran successfully', function (done) {
5253
const connection = new iConn(database, username, password, restOptions);
5354

test/functional/deprecated/iProdFunctional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ describe('iProd Functional Tests', function () {
4747
});
4848

4949
describe('constructor', function () {
50+
this.slow(1);
5051
it('creates and returns an instance of iProd', function () {
5152
const connection = new iConn(database, config.user, password);
5253

@@ -57,6 +58,7 @@ describe('iProd Functional Tests', function () {
5758
});
5859

5960
describe('getPTFInfo', function () {
61+
this.slow(348);
6062
it('returns info for specified ptf', function (done) {
6163
const connection = new iConn(database, username, password, restOptions);
6264

@@ -99,6 +101,7 @@ describe('iProd Functional Tests', function () {
99101
});
100102

101103
describe('getProductInfo', function () {
104+
this.slow(318);
102105
it('returns info for specified product', function (done) {
103106
const connection = new iConn(database, username, password, restOptions);
104107

@@ -130,6 +133,7 @@ describe('iProd Functional Tests', function () {
130133
// REST transport currently failing with 414 URI Too Long response code
131134
// The requested URL's length exceeds the capacity limit for this server
132135
describe('getInstalledProducts', function () {
136+
this.slow(1783);
133137
it('returns info for installed products', function (done) {
134138
const connection = new iConn(database, username, password, restOptions);
135139

test/functional/deprecated/iSqlFunctional.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('iSql Functional Tests', function () {
4848
});
4949

5050
describe('prepare & execute', function () {
51+
this.slow(685);
5152
it('prepares & executes stored procedure then fetch results', function (done) {
5253
const connection = new iConn(database, username, password, restOptions);
5354

@@ -80,6 +81,7 @@ describe('iSql Functional Tests', function () {
8081
});
8182

8283
describe('addQuery & fetch', function () {
84+
this.slow(463);
8385
it('runs a query and fetches results', function (done) {
8486
const connection = new iConn(database, username, password, restOptions);
8587

@@ -105,6 +107,7 @@ describe('iSql Functional Tests', function () {
105107
});
106108

107109
describe('added test to ensure issue #11 was resolved', function () {
110+
this.slow(576);
108111
it('should parse SQL result set empty data tags correctly', function (done) {
109112
const connection = new iConn(database, username, password, restOptions);
110113

@@ -131,6 +134,7 @@ describe('iSql Functional Tests', function () {
131134
});
132135

133136
describe('tables', function () {
137+
this.slow(477);
134138
it('returns meta data for specified table', function (done) {
135139
const connection = new iConn(database, username, password, restOptions);
136140

@@ -155,6 +159,7 @@ describe('iSql Functional Tests', function () {
155159
});
156160

157161
describe('tablePriv', function () {
162+
this.slow(489);
158163
it('returns privilege data for a table', function (done) {
159164
const connection = new iConn(database, username, password, restOptions);
160165

@@ -181,6 +186,7 @@ describe('iSql Functional Tests', function () {
181186
});
182187

183188
describe('columns', function () {
189+
this.slow(519);
184190
it('returns meta data for a column', function (done) {
185191
const connection = new iConn(database, username, password, restOptions);
186192

@@ -218,6 +224,7 @@ describe('iSql Functional Tests', function () {
218224
});
219225

220226
describe('columnPriv', function () {
227+
this.slow(476);
221228
it('returns privilege data for a column', function (done) {
222229
const connection = new iConn(database, username, password, restOptions);
223230

@@ -246,6 +253,7 @@ describe('iSql Functional Tests', function () {
246253
});
247254

248255
describe('procedures', function () {
256+
this.slow(474);
249257
it('returns meta data on for a procedure', function (done) {
250258
const connection = new iConn(database, username, password, restOptions);
251259

@@ -273,6 +281,7 @@ describe('iSql Functional Tests', function () {
273281
});
274282

275283
describe('pColumns', function () {
284+
this.slow(485);
276285
it('returns meta data for procedure column', function (done) {
277286
const connection = new iConn(database, username, password, restOptions);
278287

@@ -311,6 +320,7 @@ describe('iSql Functional Tests', function () {
311320
});
312321

313322
describe('primaryKeys', function () {
323+
this.slow(468);
314324
it('returns meta data for a primary key', function (done) {
315325
const connection = new iConn(database, username, password, restOptions);
316326

@@ -336,6 +346,7 @@ describe('iSql Functional Tests', function () {
336346
});
337347

338348
describe('foreignKeys', function () {
349+
this.slow(467);
339350
it('returns meta data for a foreign key', function (done) {
340351
const connection = new iConn(database, username, password, restOptions);
341352

@@ -370,6 +381,7 @@ describe('iSql Functional Tests', function () {
370381
});
371382

372383
describe('statistics', function () {
384+
this.slow(848);
373385
it('returns stats info for table', function (done) {
374386
const connection = new iConn(database, username, password, restOptions);
375387

test/functional/deprecated/iUserSpaceFunctional.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ describe('iUserSpace Functional Tests', function () {
4949
});
5050

5151
describe('constructor', function () {
52+
this.slow(1);
5253
it('returns an instance of iUserSpace', function () {
5354
const connection = new iConn(database, config.user, password);
5455

@@ -59,6 +60,7 @@ describe('iUserSpace Functional Tests', function () {
5960
});
6061

6162
describe('createUserSpace', function () {
63+
this.slow(351);
6264
it('creates a user space', function (done) {
6365
const connection = new iConn(database, username, password, restOptions);
6466

@@ -77,6 +79,7 @@ describe('iUserSpace Functional Tests', function () {
7779
});
7880

7981
describe('setUserSpaceData', function () {
82+
this.slow(316);
8083
it('sets data within the user space', function (done) {
8184
const connection = new iConn(database, username, password, restOptions);
8285

@@ -95,6 +98,7 @@ describe('iUserSpace Functional Tests', function () {
9598
});
9699

97100
describe('getUserSpaceData', function () {
101+
this.slow(316);
98102
it('returns specified length of data', function (done) {
99103
const connection = new iConn(database, username, password, restOptions);
100104

@@ -110,6 +114,7 @@ describe('iUserSpace Functional Tests', function () {
110114
});
111115

112116
describe('deleteUserSpace', function () {
117+
this.slow(314);
113118
it('removes a user space', function (done) {
114119
const connection = new iConn(database, username, password, restOptions);
115120

0 commit comments

Comments
 (0)