forked from zio/zio-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e6e4d8
commit 9653d3a
Showing
3 changed files
with
8 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
package zio.sql | ||
|
||
import zio.{ ZEnv, ZLayer } | ||
import zio.duration._ | ||
import zio.test._ | ||
import zio.test.environment.TestEnvironment | ||
import zio.test.DefaultRunnableSpec | ||
|
||
trait JdbcRunnableSpec extends AbstractRunnableSpec with Jdbc { | ||
trait JdbcRunnableSpec extends DefaultRunnableSpec with Jdbc { | ||
|
||
override type Environment = TestEnvironment | ||
type JdbcEnvironment = TestEnvironment | ||
with ReadExecutor | ||
with UpdateExecutor | ||
with DeleteExecutor | ||
with TransactionExecutor | ||
override type Failure = Any | ||
|
||
override def aspects: List[TestAspect[Nothing, TestEnvironment, Nothing, Any]] = | ||
List(TestAspect.timeoutWarning(60.seconds)) | ||
|
||
def jdbcTestEnvironment: ZLayer[ZEnv, Nothing, Environment] | ||
|
||
override def runner: TestRunner[Environment, Any] = | ||
TestRunner(TestExecutor.default(ZEnv.live >>> jdbcTestEnvironment)) | ||
|
||
} |
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
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