Skip to content

Commit

Permalink
test: remove unnecessary uv_fs_stat() calls
Browse files Browse the repository at this point in the history
`check_utime()` already calls `uv_fs_stat()`, no point in doing it
twice.
  • Loading branch information
bnoordhuis committed Mar 24, 2020
1 parent c104311 commit 189ace6
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/test-fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2466,12 +2466,7 @@ TEST_IMPL(fs_utime) {
ASSERT(r == 0);
ASSERT(req.result == 0);
uv_fs_req_cleanup(&req);

r = uv_fs_stat(NULL, &req, path, NULL);
ASSERT(r == 0);
ASSERT(req.result == 0);
check_utime(path, atime, mtime);
uv_fs_req_cleanup(&req);

atime = mtime = 1291404900; /* 2010-12-03 20:35:00 - mees <3 */
checkme.path = path;
Expand Down Expand Up @@ -2572,12 +2567,7 @@ TEST_IMPL(fs_futime) {
ASSERT(req.result == 0);
#endif
uv_fs_req_cleanup(&req);

r = uv_fs_stat(NULL, &req, path, NULL);
ASSERT(r == 0);
ASSERT(req.result == 0);
check_utime(path, atime, mtime);
uv_fs_req_cleanup(&req);

atime = mtime = 1291404900; /* 2010-12-03 20:35:00 - mees <3 */

Expand Down

0 comments on commit 189ace6

Please sign in to comment.