HBASE-6784 TestCoprocessorScanPolicy is sometimes flaky when run locally

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1389617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2012-09-24 22:03:45 +00:00
parent d930324448
commit 54bfb5833a
1 changed files with 5 additions and 3 deletions

View File

@ -90,12 +90,14 @@ public class TestCoprocessorScanPolicy {
p.add(F, tableName, Bytes.toBytes(2));
t.put(p);
long now = EnvironmentEdgeManager.currentTimeMillis();
// insert 2 versions
p = new Put(R);
p.add(F, Q, Q);
p.add(F, Q, now, Q);
t.put(p);
p = new Put(R);
p.add(F, Q, Q);
p.add(F, Q, now+1, Q);
t.put(p);
Get g = new Get(R);
g.setMaxVersions(10);
@ -113,7 +115,7 @@ public class TestCoprocessorScanPolicy {
// insert a 3rd version
p = new Put(R);
p.add(F, Q, Q);
p.add(F, Q, now+2, Q);
t.put(p);
g = new Get(R);
g.setMaxVersions(10);