Commit bbf74fb8 authored by Rich Trott's avatar Rich Trott
Browse files

test: fix disabled test-fs-largefile

Add `common.refreshTmpDir()` before using the tmp directory.

fs.writeSync no longer requires an integer for the position argument, so
change test from `assert.throws()` to `assert.doesNotThrow()`. The test
now passes.

Because it involves a 5 GB file, we're not going to activate the test,
although that is possible if we add checking for appropriate available
resources (definitely disk space, likely memory, maybe check that it's a
64-bit OS).

PR-URL: https://github.com/nodejs/node/pull/13147


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 3954ea9f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment