HDFS-11272. Refine the assert messages in TestFSDirAttrOp. Contributed by Jimmy Xiang.
(cherry picked from commit ea547529cb
)
This commit is contained in:
parent
1b39268233
commit
cd331556f6
|
@ -63,15 +63,15 @@ public class TestFSDirAttrOp {
|
||||||
unprotectedSetTimes(1000, 0, 1000, -1, false));
|
unprotectedSetTimes(1000, 0, 1000, -1, false));
|
||||||
|
|
||||||
// atime > access time + precision
|
// atime > access time + precision
|
||||||
assertTrue("SetTimes should store access time",
|
assertTrue("SetTimes should update access time",
|
||||||
unprotectedSetTimes(1011, 10, 1000, -1, false));
|
unprotectedSetTimes(1011, 10, 1000, -1, false));
|
||||||
|
|
||||||
// atime < access time + precision, but force is set
|
// atime < access time + precision, but force is set
|
||||||
assertTrue("SetTimes should store access time",
|
assertTrue("SetTimes should update access time",
|
||||||
unprotectedSetTimes(100, 0, 1000, -1, true));
|
unprotectedSetTimes(100, 0, 1000, -1, true));
|
||||||
|
|
||||||
// atime < access time + precision, but mtime is set
|
// atime < access time + precision, but mtime is set
|
||||||
assertTrue("SetTimes should store access time",
|
assertTrue("SetTimes should update access time",
|
||||||
unprotectedSetTimes(100, 0, 1000, 1, false));
|
unprotectedSetTimes(100, 0, 1000, 1, false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue