Skip to content

Commit f6b344f

Browse files
BridgeARmonkpow
authored andcommitted
Switch fs.unlink to fs.unlinkSync (#320)
1 parent 12c7f1e commit f6b344f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/bodyEncoding.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ describe('body encoding', function() {
5050
.post('/post')
5151
.attach('image', filename)
5252
.end(function(err) {
53-
fs.unlink(filename);
53+
fs.unlinkSync(filename);
5454
// This test is both broken and I think unnecessary.
5555
// Its broken because http.bin no longer supports /post, but this test assertion is based on the old
5656
// httpbin behavior.
@@ -81,7 +81,7 @@ describe('body encoding', function() {
8181
.post('/post')
8282
.attach('image', filename)
8383
.end(function(err) {
84-
fs.unlink(filename);
84+
fs.unlinkSync(filename);
8585
// This test is both broken and I think unnecessary.
8686
// Its broken because http.bin no longer supports /post, but this test assertion is based on the old
8787
// httpbin behavior.
@@ -105,7 +105,7 @@ describe('body encoding', function() {
105105
.post('/post')
106106
.attach('image', filename)
107107
.end(function(err) {
108-
fs.unlink(filename);
108+
fs.unlinkSync(filename);
109109
assert(err === null);
110110
// This test is both broken and I think unnecessary.
111111
// Its broken because http.bin no longer supports /post, but this test assertion is based on the old

0 commit comments

Comments
 (0)