Created
October 8, 2015 18:28
-
-
Save Raymond26/333727119286215db3d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override protected def server = new EmbeddedHttpServer( | |
stage = Stage.PRODUCTION, | |
twitterServer = new BackendServer { | |
override val overrideModules = Seq(PostgresTestDBModule) | |
}, | |
verbose = false | |
) | |
implicit val tc = new TestContext( | |
injector.instance[MembersPostgresComponent] | |
) | |
implicit val executionContext = tc.executionContext | |
override def afterEach(): Unit = { | |
tc.cleanup() | |
} | |
override def afterAll() : Unit = { | |
PostgresTestDBModule.close(injector) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment