Skip to content

Commit b78fcb8

Browse files
authored
test: address test failures by increasing maxBuffer limit
PR-URL: #13265 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 4e24379 commit b78fcb8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎lib/node_modules/@stdlib/namespace/test/test.cli.js‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ tape( 'when invoked with a `-V` flag, the command-line interface prints the vers
191191

192192
tape( 'the command-line interface prints selected fields of the stdlib namespace (comma-separated values)', opts, function test( t ) {
193193
var expected;
194+
var opts;
194195
var cmd;
195196

196197
cmd = [
@@ -201,7 +202,11 @@ tape( 'the command-line interface prints selected fields of the stdlib namespace
201202

202203
expected = csv( namespace(), [ 'alias', 'path' ] );
203204

204-
exec( cmd.join( ' ' ), done );
205+
opts = {
206+
'maxBuffer': 5000*1024
207+
};
208+
209+
exec( cmd.join( ' ' ), opts, done );
205210

206211
function done( error, stdout, stderr ) {
207212
if ( error ) {
@@ -218,6 +223,7 @@ tape( 'the command-line interface prints selected fields of the stdlib namespace
218223

219224
tape( 'the command-line interface prints the stdlib namespace (newline-delimited JSON)', opts, function test( t ) {
220225
var fields;
226+
var opts;
221227
var cmd;
222228
var ns;
223229

@@ -228,7 +234,11 @@ tape( 'the command-line interface prints the stdlib namespace (newline-delimited
228234
fields = [ 'alias', 'path', 'type', 'related' ];
229235
ns = namespace();
230236

231-
exec( cmd.join( ' ' ), done );
237+
opts = {
238+
'maxBuffer': 5000*1024
239+
};
240+
241+
exec( cmd.join( ' ' ), opts, done );
232242

233243
function done( error, stdout, stderr ) {
234244
var expected;

0 commit comments

Comments
 (0)