| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f58b530 commit f0202a7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | - require('../common'); | ||
| 23 | + const common = require('../common'); | ||
| 24 | 24 | ||
| 25 | 25 | const assert = require('assert'); | |
| 26 | 26 | const fs = require('fs'); | |
@@ -46,7 +46,7 @@ assert.strictEqual(readBuf[0], 0); | |||
| 46 | 46 | ||
| 47 | 47 | // Verify that floating point positions do not throw. | |
| 48 | 48 | fs.writeSync(fd, writeBuf, 0, writeBuf.length, 42.000001); | |
| 49 | - fs.close(fd); | ||
| 49 | + fs.close(fd, common.mustCall()); | ||
| 50 | 50 | ||
| 51 | 51 | // Normally, we don't clean up tmp files at the end of a test, but we'll make an | |
| 52 | 52 | // exception for a 5 GB file. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments