From e020898266b9be78a9d75feae21a2d40eb872e3a Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 22 Jun 2011 22:07:35 +0000 Subject: [PATCH] Another attempt at fixing TestFSTableDescriptors git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1138658 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/util/TestFSTableDescriptors.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java b/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java index ee557b16077..2e41b25b68d 100644 --- a/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java +++ b/src/test/java/org/apache/hadoop/hbase/util/TestFSTableDescriptors.java @@ -97,13 +97,14 @@ public class TestFSTableDescriptors { for (int i = 0; i < count; i++) { assertTrue(htds.get(Bytes.toBytes(name + i)) != null); } + // Wait a while so mod time we write is for sure different. + Thread.sleep(1000); // Update the table infos for (int i = 0; i < count; i++) { HTableDescriptor htd = new HTableDescriptor(name + i); htd.addFamily(new HColumnDescriptor("" + i)); FSUtils.updateHTableDescriptor(fs, rootdir, htd); } - Thread.sleep(2000); for (int i = 0; i < count; i++) { assertTrue(htds.get(Bytes.toBytes(name + i)) != null); }