Merge pull request #19906 from richard-imaoka/testkit-fix-doc-async-constractor-richard-imaoka
simplifyTestKit doc async sample #18804
This commit is contained in:
commit
cabd445a59
1 changed files with 1 additions and 3 deletions
|
|
@ -13,12 +13,10 @@ import org.scalatest.Matchers
|
|||
import org.scalatest.BeforeAndAfterAll
|
||||
|
||||
//#implicit-sender
|
||||
class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender
|
||||
class MySpec() extends TestKit(ActorSystem("MySpec")) with ImplicitSender
|
||||
with WordSpecLike with Matchers with BeforeAndAfterAll {
|
||||
//#implicit-sender
|
||||
|
||||
def this() = this(ActorSystem("MySpec"))
|
||||
|
||||
override def afterAll {
|
||||
TestKit.shutdownActorSystem(system)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue