Skip to content

Commit adfdb35

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

26 files changed

+182
-1
lines changed

test/functional/CommandCallFunctional.js

+3
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

+1
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

+3
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

+4
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

+3
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

+7
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ describe('iObj Functional Tests', function () {
5757
});
5858

5959
describe('retrUsrAuth', function () {
60+
this.slow(326);
6061
it(`returns uses's authority for an object using ${config.transport} tranport`, function (done) {
6162
const connection = new iConn(database, username, password, restOptions);
6263

@@ -101,6 +102,7 @@ describe('iObj Functional Tests', function () {
101102
});
102103

103104
describe('rtrCmdInfo', function () {
105+
this.slow(320);
104106
it('returns command info', function (done) {
105107
const connection = new iConn(database, username, password, restOptions);
106108

@@ -153,6 +155,7 @@ describe('iObj Functional Tests', function () {
153155
});
154156

155157
describe('retrPgmInfo', function () {
158+
this.slow(357);
156159
it('returns program info', function (done) {
157160
const connection = new iConn(database, username, password, restOptions);
158161

@@ -227,6 +230,7 @@ describe('iObj Functional Tests', function () {
227230
});
228231

229232
describe('retrSrvPgmInfo', function () {
233+
this.slow(343);
230234
it('returns service program info', function (done) {
231235
const connection = new iConn(database, username, password, restOptions);
232236

@@ -282,6 +286,7 @@ describe('iObj Functional Tests', function () {
282286
});
283287

284288
describe('retrUserInfo', function () {
289+
this.slow(356);
285290
it('returns specified user profile info', function (done) {
286291
const connection = new iConn(database, username, password, restOptions);
287292

@@ -308,6 +313,7 @@ describe('iObj Functional Tests', function () {
308313
});
309314

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

@@ -335,6 +341,7 @@ describe('iObj Functional Tests', function () {
335341
});
336342

337343
describe('addToLibraryList', function () {
344+
this.slow(317);
338345
it('appends lib to user\'s lib list', function (done) {
339346
const connection = new iConn(database, username, password, restOptions);
340347

test/functional/deprecated/iPgmFunctional.js

+1
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

+4
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

+12
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

+5
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

test/functional/deprecated/iWorkFunctional.js

+7
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ describe('iWork Functional Tests', function () {
4848
});
4949

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

@@ -58,6 +59,7 @@ describe('iWork Functional Tests', function () {
5859
});
5960

6061
describe('getSysValue', function () {
62+
this.slow(326);
6163
it('returns the value of system variable', function (done) {
6264
const connection = new iConn(database, username, password, restOptions);
6365

@@ -71,6 +73,7 @@ describe('iWork Functional Tests', function () {
7173
});
7274

7375
describe('getSysStatus', function () {
76+
this.slow(372);
7477
it('returns basic system status information about the signed-on users '
7578
+ 'and batch jobs',
7679
function (done) {
@@ -101,6 +104,7 @@ describe('iWork Functional Tests', function () {
101104
});
102105

103106
describe('getSysStatusExt', function () {
107+
this.slow(1419);
104108
it('returns more detailed system status info',
105109
function (done) {
106110
const connection = new iConn(database, username, password, restOptions);
@@ -146,6 +150,7 @@ describe('iWork Functional Tests', function () {
146150
});
147151

148152
describe('getJobStatus', function () {
153+
this.slow(312);
149154
it('returns status of specified job',
150155
function (done) {
151156
const connection = new iConn(database, username, password, restOptions);
@@ -162,6 +167,7 @@ describe('iWork Functional Tests', function () {
162167
});
163168

164169
describe('getJobInfo', function () {
170+
this.slow(323);
165171
it('returns info on specfed job', function (done) {
166172
const connection = new iConn(database, username, password, restOptions);
167173

@@ -210,6 +216,7 @@ describe('iWork Functional Tests', function () {
210216
});
211217

212218
describe('getDataArea', function () {
219+
this.slow(336);
213220
before('init lib, data area, and add data', function (done) {
214221
checkObjectExists(config, 'TESTDA', '*DTAARA', (error) => {
215222
if (error) { throw error; }

0 commit comments

Comments
 (0)