Skip to content

Commit 74479c1

Browse files
committed
fixup! test add
1 parent 6fa93e5 commit 74479c1

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

test/parallel/test-fs-chown-negative-one.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const common = require('../common');
4-
const assert = require('assert');
54
const fs = require('fs');
65
const path = require('path');
76
const tmpdir = require('../common/tmpdir');
@@ -17,7 +16,6 @@ fs.writeFileSync(testFile, 'test content for chown');
1716
fs.chown(testFile, -1, -1, common.mustSucceed());
1817
}
1918
{
20-
assert.doesNotThrow(() => {
21-
fs.chownSync(testFile, -1, -1);
22-
});
19+
// This should not throw
20+
fs.chownSync(testFile, -1, -1);
2321
}

test/parallel/test-fs-fchown-negative-one.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ const fd = fs.openSync(testFile, 'r+');
1919
fs.fchown(fd, -1, -1, common.mustSucceed());
2020
}
2121
{
22-
assert.doesNotThrow(() => {
23-
fs.fchownSync(fd, -1, -1);
24-
});
22+
// This should not throw
23+
fs.fchownSync(fd, -1, -1);
2524
}
2625

2726
fs.closeSync(fd);

test/parallel/test-fs-lchown-negative-one.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ fs.symlinkSync(testFile, testLink);
1919
fs.lchown(testLink, -1, -1, common.mustSucceed());
2020
}
2121
{
22-
assert.doesNotThrow(() => {
23-
fs.lchownSync(testLink, -1, -1);
24-
});
22+
// This should not throw
23+
fs.lchownSync(testLink, -1, -1);
2524
}

0 commit comments

Comments
 (0)