From 6d308eb4f2c10fc184f4652e084cdc06ebd7bbd4 Mon Sep 17 00:00:00 2001 From: nafiy <30563796+nafiyAix@users.noreply.github.com> Date: Sun, 28 Aug 2022 18:52:39 +0800 Subject: [PATCH] [ISSUE-465][Bug] Common module scalatest style unit test don't actually run (#472) --- common/pom.xml | 9 +++++++++ .../com/aliyun/emr/rss/common/meta/WorkerInfoSuite.scala | 2 +- server-master/pom.xml | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/common/pom.xml b/common/pom.xml index 94f6c9f68..c5c5f949e 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -153,6 +153,15 @@ -Xmx1024m -XX:MaxPermSize=256m + + org.scalatest + scalatest-maven-plugin + + false + once + -Xmx2048m + + org.xolstice.maven.plugins protobuf-maven-plugin diff --git a/common/src/test/scala/com/aliyun/emr/rss/common/meta/WorkerInfoSuite.scala b/common/src/test/scala/com/aliyun/emr/rss/common/meta/WorkerInfoSuite.scala index d3eb503b2..eaf42ea82 100644 --- a/common/src/test/scala/com/aliyun/emr/rss/common/meta/WorkerInfoSuite.scala +++ b/common/src/test/scala/com/aliyun/emr/rss/common/meta/WorkerInfoSuite.scala @@ -149,6 +149,6 @@ class WorkerInfoSuite extends RssFunSuite { test("WorkerInfo equals when numSlots different.") { val worker1 = new WorkerInfo("h1", 10001, 10002, 10003, 1000, null, null) val worker2 = new WorkerInfo("h1", 10001, 10002, 10003, 2000, null, null) - assertEquals(worker1, worker2) + assertNotEquals(worker1, worker2) } } diff --git a/server-master/pom.xml b/server-master/pom.xml index db4ef8fd6..595773133 100644 --- a/server-master/pom.xml +++ b/server-master/pom.xml @@ -114,6 +114,11 @@ org.scalatest scalatest-maven-plugin + + false + once + -Xmx2048m + org.xolstice.maven.plugins