Skip to content

Commit

Permalink
clean up some imports
Browse files Browse the repository at this point in the history
  • Loading branch information
S11001001 committed Oct 25, 2021
1 parent 54c400a commit db9ed61
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,10 @@ abstract class AbstractDatabaseIntegrationTest extends AsyncFreeSpecLike with Be
}.unsafeToFuture()

"SurrogateTemplateIdCache" - {
import dao.logHandler, dao.jdbcDriver.q.queries

"should be used on template insertion and reads" in {
import dao.jdbcDriver.q.queries
def getOrElseInsertTemplate(tpid: TemplateId[String])(implicit
logHandler: LogHandler = dao.logHandler
) = instanceUUIDLogCtx(implicit lc =>
def getOrElseInsertTemplate(tpid: TemplateId[String]) = instanceUUIDLogCtx(implicit lc =>
dao.transact(
queries
.surrogateTemplateId(tpid.packageId, tpid.moduleName, tpid.entityName)
Expand All @@ -212,7 +211,6 @@ abstract class AbstractDatabaseIntegrationTest extends AsyncFreeSpecLike with Be
"doesn't cache uncommitted template IDs" in {
import dbbackend.Queries.DBContract, spray.json.{JsObject, JsNull, JsValue},
spray.json.DefaultJsonProtocol._
import dao.logHandler, dao.jdbcDriver.q.queries

val tpId = TemplateId("pkg", "mod", "UncomCollision")

Expand Down

0 comments on commit db9ed61

Please sign in to comment.