Skip to content

Commit

Permalink
Remove unused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed May 12, 2024
1 parent 6024785 commit 5466f5b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tdutils/test/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,11 @@ TEST(Misc, update_atime_saves_mtime) {
r_file.move_as_ok().close();

auto info = td::stat(name).ok();
td::int32 tests_ok = 0;
td::int32 tests_wa = 0;
for (int i = 0; i < 10000; i++) {
td::update_atime(name).ensure();
auto new_info = td::stat(name).ok();
if (info.mtime_nsec_ == new_info.mtime_nsec_) {
tests_ok++;
} else {
if (info.mtime_nsec_ != new_info.mtime_nsec_) {
tests_wa++;
info.mtime_nsec_ = new_info.mtime_nsec_;
}
Expand Down

0 comments on commit 5466f5b

Please sign in to comment.