HBASE-19546 TestMasterReplication.testCyclicReplication2 uses wrong assertion

This commit is contained in:
zhangduo 2017-12-18 16:56:43 +08:00
parent dfd4df6d8f
commit 08e948b188
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/*
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@ -22,6 +22,8 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import com.google.protobuf.ServiceException;
import java.io.Closeable;
import java.io.IOException;
import java.util.Arrays;
@ -79,8 +81,6 @@ import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import com.google.protobuf.ServiceException;
@Category(LargeTests.class)
public class TestMasterReplication {
@ -274,7 +274,7 @@ public class TestMasterReplication {
*/
@Test(timeout = 300000)
public void testCyclicReplication2() throws Exception {
LOG.info("testCyclicReplication1");
LOG.info("testCyclicReplication2");
int numClusters = 3;
Table[] htables = null;
try {
@ -313,7 +313,7 @@ public class TestMasterReplication {
// without HBASE-9158 the edit for row4 would have been marked with
// cluster 0's id
// and hence not replicated to cluster 0
wait(row4, htables[0], true);
wait(row4, htables[0], false);
} finally {
close(htables);
shutDownMiniClusters();