Skip to content
Myr

max-buffer.js

This file

Path

test/fixtures/max-buffer.js

7 lines · 245 bytes · JavaScript

Last changed by

Improve test helpers (#910)ehmickybefore adoptiona29352f

History of this file

Take it

The walk stopped after 200 commits: lines older than db95b51 point at it.

Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51

lines 1–2why, one step back
1#!/usr/bin/env node
2import process from 'node:process';

Improve test helpers (#910)ehmickybefore adoptiona29352f

line 3why, one step back
3import {getWriteStream} from '../helpers/fs.js';

Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51

line 4why, one step back
4

Rename `index` to `fdNumber` (#862)ehmickybefore adoption295ef40

line 5why, one step back
5const fdNumber = Number(process.argv[2]);

Fix calling `.kill()` many times (#768)ehmickybefore adoptiondb95b51

line 6why, one step back
6const bytes = '.'.repeat(Number(process.argv[3] || 1e7));

Improve test helpers (#910)ehmickybefore adoptiona29352f

line 7why, one step back
7getWriteStream(fdNumber).write(bytes);