Skip to content

Instantly share code, notes, and snippets.

@Raymond26
Created October 8, 2015 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raymond26/333727119286215db3d1 to your computer and use it in GitHub Desktop.
Save Raymond26/333727119286215db3d1 to your computer and use it in GitHub Desktop.
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