Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AkkaTestKitSpecs2Support should not be a Class #10

Open
bpholt opened this issue Nov 3, 2017 · 0 comments
Open

AkkaTestKitSpecs2Support should not be a Class #10

bpholt opened this issue Nov 3, 2017 · 0 comments
Assignees

Comments

@bpholt
Copy link
Member

bpholt commented Nov 3, 2017

class AkkaTestKitSpecs2Support(config: Option[Config] = None)(implicit executionEnv: ExecutionEnv = null) extends TestKitBase with After with ImplicitSender {

Because this is a class and not a trait, the delayedInit function is called twice. In some cases this defeats the purpose of shutting down the actor system in after.

I think this is a class here to take advantage of a constructor parameter for the config object, so we'll need to figure out another way of handling that.

@bpholt bpholt self-assigned this Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant