Commit 730c3b2
test: refactor test-fs-fsync
- replace var with const.
- remove successes var.
- use assert.ifError() for handling all errors.
- wrap all callbacks with common.mustCall().
PR-URL: #10176
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent 9c9d422 commit 730c3b2Copy full SHA for 730c3b2
File tree
Expand file treeCollapse file tree
1 file changed
+14
-23
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
1 file changed
+14
-23
lines changedOpen diff view settings
Collapse file
test/parallel/test-fs-fsync.js
Copy file name to clipboard+14-23Lines changed: 14 additions & 23 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
3 | | - |
| 2 | + |
| 3 | + |
4 | 4 | |
5 | | - |
6 | | - |
7 | | - |
| 5 | + |
| 6 | + |
8 | 7 | |
9 | | - |
| 8 | + |
10 | 9 | |
11 | | - |
12 | | - |
| 10 | + |
| 11 | + |
13 | 12 | |
14 | 13 | |
15 | | - |
16 | 14 | |
17 | 15 | |
18 | | - |
19 | 16 | |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
0 commit comments