From cd331556f61efac2de41a27c8e146ff925b56588 Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Mon, 26 Dec 2016 17:15:45 +0900 Subject: [PATCH] HDFS-11272. Refine the assert messages in TestFSDirAttrOp. Contributed by Jimmy Xiang. (cherry picked from commit ea547529cb17c931a756ebffa6942f71f761ad13) --- .../hadoop/hdfs/server/namenode/TestFSDirAttrOp.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSDirAttrOp.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSDirAttrOp.java index 3273d6446d2..f76717ce197 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSDirAttrOp.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFSDirAttrOp.java @@ -53,25 +53,25 @@ public class TestFSDirAttrOp { @Test public void testUnprotectedSetTimes() throws Exception { // atime < access time + precision - assertFalse("SetTimes should not update access time" + assertFalse("SetTimes should not update access time " + "because it's within the last precision interval", unprotectedSetTimes(100, 0, 1000, -1, false)); // atime = access time + precision - assertFalse("SetTimes should not update access time" + assertFalse("SetTimes should not update access time " + "because it's within the last precision interval", unprotectedSetTimes(1000, 0, 1000, -1, false)); // atime > access time + precision - assertTrue("SetTimes should store access time", + assertTrue("SetTimes should update access time", unprotectedSetTimes(1011, 10, 1000, -1, false)); // 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)); // 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)); } }