fix memory leaks in tests, #20659
This commit is contained in:
parent
6a13d99bfc
commit
be448e9fbb
36 changed files with 144 additions and 153 deletions
|
|
@ -151,7 +151,7 @@ public class FaultHandlingTest extends AbstractJavaTest {
|
|||
|
||||
@BeforeClass
|
||||
public static void start() {
|
||||
system = ActorSystem.create("test");
|
||||
system = ActorSystem.create("FaultHandlingTest");
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ import akka.testkit.AkkaJUnitActorSystemResource;
|
|||
import org.junit.*;
|
||||
|
||||
public class SchedulerDocTest extends AbstractJavaTest {
|
||||
|
||||
@Rule
|
||||
public AkkaJUnitActorSystemResource actorSystemResource =
|
||||
new AkkaJUnitActorSystemResource("SchedulerDocTest", AkkaSpec.testConf());
|
||||
|
||||
@ClassRule
|
||||
public static AkkaJUnitActorSystemResource actorSystemResource = new AkkaJUnitActorSystemResource("SchedulerDocTest",
|
||||
AkkaSpec.testConf());
|
||||
|
||||
private final ActorSystem system = actorSystemResource.getSystem();
|
||||
private ActorRef testActor = system.actorOf(Props.create(MyUntypedActor.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue