aglinxinyuan commented on code in PR #9597:
URL: https://github.com/apache/texera/pull/9597#discussion_r4665340881
##########
amber/src/test/scala/org/apache/texera/amber/engine/architecture/messaginglayer/NetworkInputGatewaySpec.scala:
##########
@@ -22,10 +22,9 @@ package
org.apache.texera.amber.engine.architecture.messaginglayer
import org.apache.texera.amber.core.tuple.{AttributeType, Schema, TupleLike}
import org.apache.texera.amber.core.virtualidentity.{ActorVirtualIdentity,
ChannelIdentity}
import org.apache.texera.amber.engine.common.ambermessage.{DataFrame,
WorkflowFIFOMessage}
-import org.scalamock.scalatest.MockFactory
import org.scalatest.flatspec.AnyFlatSpec
-class NetworkInputGatewaySpec extends AnyFlatSpec with MockFactory {
+class NetworkInputGatewaySpec extends AnyFlatSpec {
Review Comment:
Done in 7e79747ea8 — removed all of those except two that are now used:
#9518 gave `ProjectionOpExecSpec` a `before` block on `main`, and the open
#8484 adds one to `SpecializedFilterOpExecSpec`. `LoggingSpec` and `ReplaySpec`
now shut their actor systems down in `afterAll`, and the same sweep also caught
`MockFactory` in `WorkerSpec` and `BeforeAndAfterAll` in
`IcebergDocumentConsoleMessagesSpec` and `LakeFSStorageClientMtimeSpec`.
##########
common/workflow-core/src/test/scala/org/apache/texera/service/util/LargeBinaryInputStreamSpec.scala:
##########
@@ -21,18 +21,14 @@ package org.apache.texera.service.util
import org.apache.texera.amber.core.tuple.LargeBinary
import org.apache.texera.common.tags.NonParallelTest
-import org.scalatest.{BeforeAndAfterAll, BeforeAndAfterEach}
+import org.scalatest.BeforeAndAfterAll
import org.scalatest.funsuite.AnyFunSuite
import java.io.{ByteArrayInputStream, IOException}
import scala.util.Random
@NonParallelTest
-class LargeBinaryInputStreamSpec
- extends AnyFunSuite
- with S3StorageTestBase
- with BeforeAndAfterAll
- with BeforeAndAfterEach {
+class LargeBinaryInputStreamSpec extends AnyFunSuite with S3StorageTestBase
with BeforeAndAfterAll {
Review Comment:
Done in 7e79747ea8 — all three now extend `AnyFunSuite with
S3StorageTestBase` without the `BeforeAndAfterAll` import, and their
`super.beforeAll()`/`super.afterAll()` chains are unchanged.
##########
common/workflow-operator/src/test/scala/org/apache/texera/amber/operator/visualization/waterfallChart/WaterfallChartOpDescSpec.scala:
##########
@@ -55,8 +55,7 @@ class WaterfallChartOpDescSpec
it should "throw an AssertionError naming the Y Axis when only xColumn is
set" in {
opDesc.xColumn = "x_col"
- val ex =
- expectError[AssertionError]("Y Axis Values cannot be
empty")(opDesc.createPlotlyFigure())
+ expectError[AssertionError]("Y Axis Values cannot be
empty")(opDesc.createPlotlyFigure())
Review Comment:
Done in 7e79747ea8 — all three pairs are now bare `expectError` calls, and
so is the same pair in `NestedTableOpDescSpec`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]