Jiabao-Sun commented on PR #23914:
URL: https://github.com/apache/flink/pull/23914#issuecomment-1855510460
Thanks @XComp, the ArchUnit's rules require the `MiniclusteExtension`
declared as `static final`, but in scala, we can only declare it `private val`
in `object`, but this cannot be recognized well by the rules. Maybe we can
modify the ArchUnit rules to identify this mode.
```scala
object StreamingTestBase {
@RegisterExtension
private val _: MiniClusterExtension = new MiniClusterExtension(
() =>
new MiniClusterResourceConfiguration.Builder()
.setNumberTaskManagers(1)
.setNumberSlotsPerTaskManager(4)
.build())
}
```
--
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]