Skip to content

Commit 46e6522

Browse files
committed
Remove a stress test from the functional test suite
1 parent 7e1e456 commit 46e6522

File tree

2 files changed

+2
-59
lines changed

2 files changed

+2
-59
lines changed

test/list.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ Overview of node-oracledb functional tests
300300
13.1.8 Read CLOBs
301301
13.1.9 Read CLOBs after stream close
302302
13.1.10 meta data
303-
13.1.11 stream stress test
304-
13.1.12 should emit events in the correct order
303+
13.1.11 should emit events in the correct order
305304
13.2 Testing QueryStream.destroy
306305
13.2.1 should be able to stop the stream early with destroy
307306
13.2.2 should be able to stop the stream before any data

test/stream1.js

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -410,63 +410,7 @@ describe('13. stream1.js', function () {
410410
});
411411
});
412412

413-
it('13.1.11 stream stress test', function (done) {
414-
415-
var stream = connection.queryStream('SELECT employee_name FROM nodb_stream1 ORDER BY employee_name');
416-
417-
stream.on('error', function (error) {
418-
should.fail(error, null, 'Error event should not be triggered');
419-
});
420-
421-
var counter = 0;
422-
var allData = [];
423-
stream.on('data', function (data) {
424-
should.exist(data);
425-
allData.push(data);
426-
counter++;
427-
});
428-
429-
stream.on('end', function () {
430-
should.equal(counter, rowsAmount);
431-
432-
var testDone = 0;
433-
var subTest = function (callback) {
434-
var query = connection.queryStream('SELECT employee_name FROM nodb_stream1 ORDER BY employee_name');
435-
436-
query.on('error', function (error) {
437-
should.fail(error, null, 'Error event should not be triggered');
438-
});
439-
440-
var testCounter = 0;
441-
var testData = [];
442-
query.on('data', function (data) {
443-
should.exist(data);
444-
testData.push(data);
445-
testCounter++;
446-
});
447-
448-
query.on('end', function () {
449-
should.equal(testCounter, rowsAmount);
450-
should.deepEqual(testData, allData);
451-
452-
testDone++;
453-
callback();
454-
});
455-
};
456-
var tests = [];
457-
var i;
458-
for (i = 0; i < 50; i++) { // larger values can cause 'ORA-01000: maximum open cursors exceeded'
459-
tests.push(subTest);
460-
}
461-
async.parallel(tests, function () {
462-
should.equal(testDone, tests.length);
463-
464-
done();
465-
});
466-
});
467-
});
468-
469-
it('13.1.12 should emit events in the correct order', function (done) {
413+
it('13.1.11 should emit events in the correct order', function (done) {
470414
var stream = connection.queryStream('SELECT employee_name FROM nodb_stream1 WHERE rownum = 1');
471415
var events = [];
472416

0 commit comments

Comments
 (0)