You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2020/04/02 00:50:00 UTC
[hbase] branch branch-2 updated: HBASE-24100 [Flakey Tests] Add
test to check we work properly when port clash setting up thriftserver
Addendum; add missing @ClassRule
This is an automated email from the ASF dual-hosted git repository.
stack pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new e6264c9 HBASE-24100 [Flakey Tests] Add test to check we work properly when port clash setting up thriftserver Addendum; add missing @ClassRule
e6264c9 is described below
commit e6264c9573bdac22ab2a56be88998f2d6530f62b
Author: stack <st...@apache.org>
AuthorDate: Wed Apr 1 17:49:35 2020 -0700
HBASE-24100 [Flakey Tests] Add test to check we work properly when port clash setting up thriftserver
Addendum; add missing @ClassRule
---
.../org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java
index 0658ed8..fa1d141 100644
--- a/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java
+++ b/hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift/TestBindExceptionHandling.java
@@ -17,14 +17,20 @@
*/
package org.apache.hadoop.hbase.thrift;
+import static org.junit.Assert.assertNotNull;
+import org.apache.hadoop.hbase.HBaseClassTestRule;
import org.apache.hadoop.hbase.testclassification.ClientTests;
import org.apache.hadoop.hbase.testclassification.MediumTests;
+import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
-import static org.junit.Assert.assertNotNull;
@Category({ ClientTests.class, MediumTests.class})
public class TestBindExceptionHandling {
+ @ClassRule
+ public static final HBaseClassTestRule CLASS_RULE =
+ HBaseClassTestRule.forClass(TestBindExceptionHandling.class);
+
/**
* See if random port choosing works around port clashes
*/